spec\PhpSpec\Listener\MethodNotFoundListenerSpec::it_prompts_for_method_generation_if_methodnotfoundexception_was_thrown_and_input_is_interactive PHP Метод

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

public it_prompts_for_method_generation_if_methodnotfoundexception_was_thrown_and_input_is_interactive ( $exampleEvent, $suiteEvent, $io, PhpSpec\Util\NameChecker $nameChecker )
$nameChecker PhpSpec\Util\NameChecker
    function it_prompts_for_method_generation_if_methodnotfoundexception_was_thrown_and_input_is_interactive($exampleEvent, $suiteEvent, $io, NameChecker $nameChecker)
    {
        $exception = new MethodNotFoundException('Error', new \stdClass(), 'bar');
        $exampleEvent->getException()->willReturn($exception);
        $nameChecker->isNameValid('bar')->willReturn(true);
        $this->afterExample($exampleEvent);
        $this->afterSuite($suiteEvent);
        $io->askConfirmation(Argument::any())->shouldHaveBeenCalled();
    }