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

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

public it_does_not_prompt_for_class_generation_if_non_class_exception_was_thrown ( $exampleEvent, $suiteEvent, $io, InvalidArgumentException $exception )
$exception InvalidArgumentException
    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();
    }