Eloquent\Phony\Spy\SpyVerifierFactory::create PHP Method

create() public method

Create a new spy verifier.
public create ( Eloquent\Phony\Spy\Spy $spy = null ) : SpyVerifier
$spy Eloquent\Phony\Spy\Spy The spy, or null to create an anonymous spy.
return SpyVerifier The newly created spy verifier.
    public function create(Spy $spy = null)
    {
        if (!$spy) {
            $spy = $this->spyFactory->create();
        }
        return new SpyVerifier($spy, $this->matcherFactory, $this->matcherVerifier, $this->generatorVerifierFactory, $this->iterableVerifierFactory, $this->callVerifierFactory, $this->assertionRecorder, $this->assertionRenderer);
    }