public isNameValid ( string $name ) : boolean | ||
$name | string | |
return | boolean |
public function isNameValid($name);
function it_prompts_for_method_generation_if_methodnotfoundexception_was_thrown_and_input_is_interactive($exampleEvent, $suiteEvent, $io, NameChecker $nameChecker) { $exception = new MethodNotFoundException('Error', new \stdClass(), 'bar'); $exampleEvent->getException()->willReturn($exception); $nameChecker->isNameValid('bar')->willReturn(true); $this->afterExample($exampleEvent); $this->afterSuite($suiteEvent); $io->askConfirmation(Argument::any())->shouldHaveBeenCalled(); }