src/Spy/SpyVerifierFactory.php
public function create(Spy $spy = null): SpyVerifier
    {
        if (!$spy) {
            $spy = $this->spyFactory->create();
        }

        return new SpyVerifier(
            $spy,
            $this->matcherFactory,
            $this->matcherVerifier,
            $this->generatorVerifierFactory,
            $this->iterableVerifierFactory,
            $this->callVerifierFactory,
            $this->assertionRecorder,
            $this->assertionRenderer
        );
    }
public function create(Spy $spy = null): SpyVerifier
    {
        if (!$spy) {
            $spy = $this->spyFactory->create();
        }

        return new SpyVerifier(
            $spy,
            $this->matcherFactory,
            $this->matcherVerifier,
            $this->generatorVerifierFactory,
            $this->iterableVerifierFactory,
            $this->callVerifierFactory,
            $this->assertionRecorder,
            $this->assertionRenderer
        );
    }
public function create ( Spy $ spy = null ) : SpyVerifier { if ( ! $ spy ) { $ spy = $ this -> spyFactory -> create ( ) ; } return new SpyVerifier ( $ spy , $ this -> matcherFactory , $ this -> matcherVerifier , $ this -> generatorVerifierFactory , $ this -> iterableVerifierFactory , $ this -> callVerifierFactory , $ this -> assertionRecorder , $ this -> assertionRenderer ) ; }
Create a new spy verifier.

@param Spy|null $spy The spy, or null to create an anonymous spy.

@return SpyVerifier The newly created spy verifier.
Create a new spy verifier .