spec\PhpSpec\Listener\MethodReturnedNullListenerSpec::it_does_not_prompt_when_input_is_not_interactive PHP Метод

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

public it_does_not_prompt_when_input_is_not_interactive ( MethodCallEvent $methodCallEvent, ExampleEvent $exampleEvent, ConsoleIO $io, SuiteEvent $event )
$methodCallEvent PhpSpec\Event\MethodCallEvent
$exampleEvent PhpSpec\Event\ExampleEvent
$io PhpSpec\Console\ConsoleIO
$event PhpSpec\Event\SuiteEvent
    function it_does_not_prompt_when_input_is_not_interactive(MethodCallEvent $methodCallEvent, ExampleEvent $exampleEvent, ConsoleIO $io, SuiteEvent $event)
    {
        $io->isCodeGenerationEnabled()->willReturn(false);
        $this->afterMethodCall($methodCallEvent);
        $this->afterExample($exampleEvent);
        $this->afterSuite($event);
        $io->askConfirmation(Argument::any())->shouldNotHaveBeenCalled();
    }