spec\PhpSpec\Listener\ClassNotFoundListenerSpec::it_prompts_for_class_generation_if_prophecy_classnotfoundexception_was_thrown_and_input_is_interactive PHP Метод

it_prompts_for_class_generation_if_prophecy_classnotfoundexception_was_thrown_and_input_is_interactive() публичный Метод

public it_prompts_for_class_generation_if_prophecy_classnotfoundexception_was_thrown_and_input_is_interactive ( $exampleEvent, $suiteEvent, $io, Prophecy\Exception\Doubler\ClassNotFoundException $exception )
$exception Prophecy\Exception\Doubler\ClassNotFoundException
    function it_prompts_for_class_generation_if_prophecy_classnotfoundexception_was_thrown_and_input_is_interactive($exampleEvent, $suiteEvent, $io, ProphecyClassException $exception)
    {
        $exampleEvent->getException()->willReturn($exception);
        $io->isCodeGenerationEnabled()->willReturn(true);
        $this->afterExample($exampleEvent);
        $this->afterSuite($suiteEvent);
        $io->askConfirmation(Argument::any())->shouldHaveBeenCalled();
    }