spec\PhpSpec\Listener\StopOnFailureListenerSpec::it_throws_an_exception_when_an_example_fails_and_option_is_set PHP Метод

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

public it_throws_an_exception_when_an_example_fails_and_option_is_set ( ExampleEvent $event, $io )
$event PhpSpec\Event\ExampleEvent
    function it_throws_an_exception_when_an_example_fails_and_option_is_set(ExampleEvent $event, $io)
    {
        $io->isStopOnFailureEnabled()->willReturn(true);
        $event->getResult()->willReturn(ExampleEvent::FAILED);
        $this->shouldThrow('\\PhpSpec\\Exception\\Example\\StopOnFailureException')->duringAfterExample($event);
    }