function it_prompts_for_method_generation_if_phpspec_classnotfoundexception_was_thrown_and_input_is_interactive($exampleEvent, $suiteEvent, $io, PhpspecClassException $exception) { $exampleEvent->getException()->willReturn($exception); $io->isCodeGenerationEnabled()->willReturn(true); $this->afterExample($exampleEvent); $this->afterSuite($suiteEvent); $io->askConfirmation(Argument::any())->shouldHaveBeenCalled(); }