function it_prompts_and_warns_when_one_method_name_is_correct_but_other_reserved(ExampleEvent $event, SuiteEvent $suiteEvent, ConsoleIO $io, NameChecker $nameChecker)
{
$this->callAfterExample($event, $nameChecker, 'throw', false);
$this->callAfterExample($event, $nameChecker, 'foo');
$io->writeBrokenCodeBlock("I cannot generate the method 'throw' for you because it is a reserved keyword", 2)->shouldBeCalled();
$io->askConfirmation(Argument::any())->shouldBeCalled();
$suiteEvent->markAsNotWorthRerunning()->shouldBeCalled();
$this->afterSuite($suiteEvent);
}