function it_does_not_prompt_for_method_generation_if_non_namedconstructornotfoundexception_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(); }