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

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

public it_dispatches_ExampleEvent_with_pending_status_if_example_is_pending ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, ExampleNode $example )
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$example PhpSpec\Loader\Node\ExampleNode
    function it_dispatches_ExampleEvent_with_pending_status_if_example_is_pending(EventDispatcherInterface $dispatcher, ExampleNode $example)
    {
        $example->isPending()->willReturn(true);
        $dispatcher->dispatch('beforeExample', Argument::any())->shouldBeCalled();
        $dispatcher->dispatch('afterExample', Argument::which('getResult', ExampleEvent::PENDING))->shouldBeCalled();
        $this->run($example);
    }