function it_generates_the_method_signature_when_user_says_yes_at_prompt(ConsoleIO $io, ExampleEvent $event, SuiteEvent $suiteEvent, MethodNotFoundException $exception, Resource $resource, GeneratorManager $generator)
{
$io->askConfirmation(Argument::any())->willReturn(true);
$exception->getClassname()->willReturn('spec\\PhpSpec\\Listener\\DoubleOfInterface');
$exception->getMethodName()->willReturn('aMethod');
$this->afterExample($event);
$this->afterSuite($suiteEvent);
$generator->generate($resource, 'method-signature', Argument::any())->shouldHaveBeenCalled();
}