spec\PhpSpec\Runner\ExampleRunnerSpec::it_executes_example_in_newly_created_context PHP Метод

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

public it_executes_example_in_newly_created_context ( ExampleNode $example, ReflectionMethod $exampReflection, PhpSpec\Specification $context )
$example PhpSpec\Loader\Node\ExampleNode
$exampReflection ReflectionMethod
$context PhpSpec\Specification
    function it_executes_example_in_newly_created_context(ExampleNode $example, ReflectionMethod $exampReflection, Specification $context)
    {
        $example->isPending()->willReturn(false);
        $exampReflection->getParameters()->willReturn(array());
        $exampReflection->invokeArgs($context, array())->shouldBeCalled();
        $this->run($example);
    }