function it_does_not_prompt_for_class_generation_if_non_class_exception_was_thrown($exampleEvent, $suiteEvent, $io, \InvalidArgumentException $exception)
{
$exampleEvent->getException()->willReturn($exception);
$io->isCodeGenerationEnabled()->willReturn(true);
$this->afterExample($exampleEvent);
$this->afterSuite($suiteEvent);
$io->askConfirmation(Argument::any())->shouldNotBeenCalled();
}