public __construct ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, array $calls, |
||
$subject | Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call | The subject. |
$calls | array | |
$matcherFactory | The matcher factory to use. | |
$callVerifierFactory | The call verifier factory to use. | |
$assertionRecorder | Eloquent\Phony\Assertion\AssertionRecorder | The assertion recorder to use. |
$assertionRenderer | The assertion renderer to use. |
public function __construct($subject, array $calls, MatcherFactory $matcherFactory, CallVerifierFactory $callVerifierFactory, AssertionRecorder $assertionRecorder, AssertionRenderer $assertionRenderer)
{
$this->subject = $subject;
$this->matcherFactory = $matcherFactory;
$this->assertionRecorder = $assertionRecorder;
$this->assertionRenderer = $assertionRenderer;
$this->isGenerator = false;
parent::__construct($calls, $callVerifierFactory);
}
/** * Construct a new generator verifier. * * @param Spy|Call $subject The subject. * @param array<Call> $calls The generator calls. * @param MatcherFactory $matcherFactory The matcher 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($subject, array $calls, MatcherFactory $matcherFactory, CallVerifierFactory $callVerifierFactory, AssertionRecorder $assertionRecorder, AssertionRenderer $assertionRenderer) { parent::__construct($subject, $calls, $matcherFactory, $callVerifierFactory, $assertionRecorder, $assertionRenderer); $this->isGenerator = true; }