__construct() публичный Метод

Construct a new spy verifier.
public __construct ( Eloquent\Phony\Spy\Spy $spy, MatcherFactory $matcherFactory, MatcherVerifier $matcherVerifier, GeneratorVerifierFactory $generatorVerifierFactory, IterableVerifierFactory $iterableVerifierFactory, CallVerifierFactory $callVerifierFactory, Eloquent\Phony\Assertion\AssertionRecorder $assertionRecorder, AssertionRenderer $assertionRenderer )
$spy Eloquent\Phony\Spy\Spy The spy.
$matcherFactory Eloquent\Phony\Matcher\MatcherFactory The matcher factory to use.
$matcherVerifier Eloquent\Phony\Matcher\MatcherVerifier The macther verifier to use.
$generatorVerifierFactory Eloquent\Phony\Verification\GeneratorVerifierFactory The generator verifier factory to use.
$iterableVerifierFactory Eloquent\Phony\Verification\IterableVerifierFactory The iterable verifier factory to use.
$callVerifierFactory Eloquent\Phony\Call\CallVerifierFactory The call verifier factory to use.
$assertionRecorder Eloquent\Phony\Assertion\AssertionRecorder The assertion recorder to use.
$assertionRenderer Eloquent\Phony\Assertion\AssertionRenderer The assertion renderer to use.
Пример #1
0
 /**
  * Construct a new stub verifier.
  *
  * @param Stub                          $stub                          The stub.
  * @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.
  * @param GeneratorAnswerBuilderFactory $generatorAnswerBuilderFactory The generator answer builder factory to use.
  */
 public function __construct(Stub $stub, Spy $spy, MatcherFactory $matcherFactory, MatcherVerifier $matcherVerifier, GeneratorVerifierFactory $generatorVerifierFactory, IterableVerifierFactory $iterableVerifierFactory, CallVerifierFactory $callVerifierFactory, AssertionRecorder $assertionRecorder, AssertionRenderer $assertionRenderer, GeneratorAnswerBuilderFactory $generatorAnswerBuilderFactory)
 {
     parent::__construct($spy, $matcherFactory, $matcherVerifier, $generatorVerifierFactory, $iterableVerifierFactory, $callVerifierFactory, $assertionRecorder, $assertionRenderer);
     $this->stub = $stub;
     $this->generatorAnswerBuilderFactory = $generatorAnswerBuilderFactory;
 }