spec\PhpSpec\Runner\ExampleRunnerSpec::let PHP Méthode

let() public méthode

public let ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, PhpSpec\Formatter\Presenter\Presenter $presenter, ExampleNode $example, SpecificationNode $specification, ReflectionClass $specReflection, ReflectionMethod $exampReflection, PhpSpec\Specification $context )
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$presenter PhpSpec\Formatter\Presenter\Presenter
$example PhpSpec\Loader\Node\ExampleNode
$specification PhpSpec\Loader\Node\SpecificationNode
$specReflection ReflectionClass
$exampReflection ReflectionMethod
$context PhpSpec\Specification
    function let(EventDispatcherInterface $dispatcher, Presenter $presenter, ExampleNode $example, SpecificationNode $specification, ReflectionClass $specReflection, ReflectionMethod $exampReflection, Specification $context)
    {
        $this->beConstructedWith($dispatcher, $presenter);
        $example->getSpecification()->willReturn($specification);
        $example->getFunctionReflection()->willReturn($exampReflection);
        $specification->getClassReflection()->willReturn($specReflection);
        $specReflection->newInstance()->willReturn($context);
    }