function it_marks_the_suite_as_being_worth_rerunning_when_generation_happens(ConsoleIO $io, ExampleEvent $event, SuiteEvent $suiteEvent, MethodNotFoundException $exception)
{
$io->askConfirmation(Argument::any())->willReturn(true);
$exception->getClassname()->willReturn('spec\\PhpSpec\\Listener\\DoubleOfInterface');
$exception->getMethodName()->willReturn('aMethod');
$this->afterExample($event);
$this->afterSuite($suiteEvent);
$suiteEvent->markAsWorthRerunning()->shouldHaveBeenCalled();
}