src/Spy/SpyVerifierFactory.php
public function createFromCallback($callback): SpyVerifier
    {
        return new SpyVerifier(
            $this->spyFactory->create($callback),
            $this->matcherFactory,
            $this->matcherVerifier,
            $this->generatorVerifierFactory,
            $this->iterableVerifierFactory,
            $this->callVerifierFactory,
            $this->assertionRecorder,
            $this->assertionRenderer
        );
    }
public function createFromCallback($callback): SpyVerifier
    {
        return new SpyVerifier(
            $this->spyFactory->create($callback),
            $this->matcherFactory,
            $this->matcherVerifier,
            $this->generatorVerifierFactory,
            $this->iterableVerifierFactory,
            $this->callVerifierFactory,
            $this->assertionRecorder,
            $this->assertionRenderer
        );
    }
public function createFromCallback ( $ callback ) : SpyVerifier { return new SpyVerifier ( $ this -> spyFactory -> create ( $ callback ) , $ this -> matcherFactory , $ this -> matcherVerifier , $ this -> generatorVerifierFactory , $ this -> iterableVerifierFactory , $ this -> callVerifierFactory , $ this -> assertionRecorder , $ this -> assertionRenderer ) ; }
Create a new spy verifier for the supplied callback.

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

@return SpyVerifier The newly created spy verifier.
Create a new spy verifier for the supplied callback .