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

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

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