spec\PhpSpec\Listener\CollaboratorMethodNotFoundListenerSpec::it_does_not_prompt_when_code_generation_is_disabled PHP Метод

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

public it_does_not_prompt_when_code_generation_is_disabled ( ConsoleIO $io, ExampleEvent $event, SuiteEvent $suiteEvent, Prophecy\Exception\Doubler\MethodNotFoundException $exception )
$io PhpSpec\Console\ConsoleIO
$event PhpSpec\Event\ExampleEvent
$suiteEvent PhpSpec\Event\SuiteEvent
$exception Prophecy\Exception\Doubler\MethodNotFoundException
    function it_does_not_prompt_when_code_generation_is_disabled(ConsoleIO $io, ExampleEvent $event, SuiteEvent $suiteEvent, MethodNotFoundException $exception)
    {
        $io->isCodeGenerationEnabled()->willReturn(false);
        $exception->getClassname()->willReturn('spec\\PhpSpec\\Listener\\DoubleOfInterface');
        $exception->getMethodName()->willReturn('aMethod');
        $this->afterExample($event);
        $this->afterSuite($suiteEvent);
        $io->askConfirmation(Argument::any())->shouldNotHaveBeenCalled();
    }