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

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

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