spec\PhpSpec\Event\ExpectationEventSpec::let PHP Метод

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

public let ( PhpSpec\Loader\Suite $suite, SpecificationNode $specification, ExampleNode $example, PhpSpec\Matcher\Matcher $matcher, $subject, Exception $exception )
$suite PhpSpec\Loader\Suite
$specification PhpSpec\Loader\Node\SpecificationNode
$example PhpSpec\Loader\Node\ExampleNode
$matcher PhpSpec\Matcher\Matcher
$exception Exception
    function let(Suite $suite, SpecificationNode $specification, ExampleNode $example, Matcher $matcher, $subject, Exception $exception)
    {
        $method = 'calledMethod';
        $arguments = array('methodArguments');
        $this->beConstructedWith($example, $matcher, $subject, $method, $arguments, $this->FAILED, $exception);
        $example->getSpecification()->willReturn($specification);
        $specification->getSuite()->willReturn($suite);
    }