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

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

public it_does_not_prompt_if_it_cannot_generate_the_resource ( ConsoleIO $io, PhpSpec\Locator\ResourceManager $resources, ExampleEvent $event, SuiteEvent $suiteEvent, Prophecy\Exception\Doubler\MethodNotFoundException $exception )
$io PhpSpec\Console\ConsoleIO
$resources PhpSpec\Locator\ResourceManager
$event PhpSpec\Event\ExampleEvent
$suiteEvent PhpSpec\Event\SuiteEvent
$exception Prophecy\Exception\Doubler\MethodNotFoundException
    function it_does_not_prompt_if_it_cannot_generate_the_resource(ConsoleIO $io, ResourceManager $resources, ExampleEvent $event, SuiteEvent $suiteEvent, MethodNotFoundException $exception)
    {
        $resources->createResource(Argument::any())->willThrow(new ResourceCreationException());
        $exception->getClassname()->willReturn('spec\\PhpSpec\\Listener\\DoubleOfInterface');
        $exception->getMethodName()->willReturn('aMethod');
        $this->afterExample($event);
        $this->afterSuite($suiteEvent);
        $io->askConfirmation(Argument::any())->shouldNotHaveBeenCalled();
    }