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