function it_does_not_throw_any_exception_when_example_succeeds(ExampleEvent $event) { $event->getResult()->willReturn(ExampleEvent::PASSED); $this->afterExample($event); }