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

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

public it_prompts_the_user_when_a_prophecy_method_exception_is_thrown ( 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_prompts_the_user_when_a_prophecy_method_exception_is_thrown(ConsoleIO $io, ExampleEvent $event, SuiteEvent $suiteEvent, MethodNotFoundException $exception)
    {
        $exception->getClassname()->willReturn('spec\\PhpSpec\\Listener\\DoubleOfInterface');
        $exception->getMethodName()->willReturn('aMethod');
        $this->afterExample($event);
        $this->afterSuite($suiteEvent);
        $io->askConfirmation(Argument::any())->shouldHaveBeenCalled();
    }