/** * Construct a new spy verifier. * * @param Spy $spy The spy. * @param MatcherFactory $matcherFactory The matcher factory to use. * @param MatcherVerifier $matcherVerifier The macther verifier to use. * @param GeneratorVerifierFactory $generatorVerifierFactory The generator verifier factory to use. * @param IterableVerifierFactory $iterableVerifierFactory The iterable verifier factory to use. * @param CallVerifierFactory $callVerifierFactory The call verifier factory to use. * @param AssertionRecorder $assertionRecorder The assertion recorder to use. * @param AssertionRenderer $assertionRenderer The assertion renderer to use. */ public function __construct(Spy $spy, MatcherFactory $matcherFactory, MatcherVerifier $matcherVerifier, GeneratorVerifierFactory $generatorVerifierFactory, IterableVerifierFactory $iterableVerifierFactory, CallVerifierFactory $callVerifierFactory, AssertionRecorder $assertionRecorder, AssertionRenderer $assertionRenderer) { parent::__construct(); $this->spy = $spy; $this->matcherFactory = $matcherFactory; $this->matcherVerifier = $matcherVerifier; $this->generatorVerifierFactory = $generatorVerifierFactory; $this->iterableVerifierFactory = $iterableVerifierFactory; $this->callVerifierFactory = $callVerifierFactory; $this->assertionRecorder = $assertionRecorder; $this->assertionRenderer = $assertionRenderer; }
/** * Construct a new call verifier. * * @param Call $call The call. * @param MatcherFactory $matcherFactory The matcher factory to use. * @param MatcherVerifier $matcherVerifier The matcher verifier to use. * @param GeneratorVerifierFactory $generatorVerifierFactory The generator verifier factory to use. * @param IterableVerifierFactory $iterableVerifierFactory The iterable verifier factory to use. * @param AssertionRecorder $assertionRecorder The assertion recorder to use. * @param AssertionRenderer $assertionRenderer The assertion renderer to use. */ public function __construct(Call $call, MatcherFactory $matcherFactory, MatcherVerifier $matcherVerifier, GeneratorVerifierFactory $generatorVerifierFactory, IterableVerifierFactory $iterableVerifierFactory, AssertionRecorder $assertionRecorder, AssertionRenderer $assertionRenderer) { parent::__construct(); $this->call = $call; $this->matcherFactory = $matcherFactory; $this->matcherVerifier = $matcherVerifier; $this->generatorVerifierFactory = $generatorVerifierFactory; $this->iterableVerifierFactory = $iterableVerifierFactory; $this->assertionRecorder = $assertionRecorder; $this->assertionRenderer = $assertionRenderer; $this->argumentCount = count($call->arguments()); }