public create ( Eloquent\Phony\Spy\Spy $spy = null ) : |
||
$spy | Eloquent\Phony\Spy\Spy | The spy, or null to create an anonymous spy. |
return | 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);
}