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); }