spec\PhpSpec\Listener\NamedConstructorNotFoundListenerSpec::it_prompts_for_method_generation_if_namedconstructornotfoundexception_was_thrown_and_input_is_interactive PHP Метод

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

public it_prompts_for_method_generation_if_namedconstructornotfoundexception_was_thrown_and_input_is_interactive ( $exampleEvent, $suiteEvent, $io, PhpSpec\Exception\Fracture\NamedConstructorNotFoundException $exception )
$exception PhpSpec\Exception\Fracture\NamedConstructorNotFoundException
    function it_prompts_for_method_generation_if_namedconstructornotfoundexception_was_thrown_and_input_is_interactive($exampleEvent, $suiteEvent, $io, NamedConstructorNotFoundException $exception)
    {
        $exampleEvent->getException()->willReturn($exception);
        $io->isCodeGenerationEnabled()->willReturn(true);
        $this->afterExample($exampleEvent);
        $this->afterSuite($suiteEvent);
        $io->askConfirmation(Argument::any())->shouldHaveBeenCalled();
    }