PhpSpec\Util\NameChecker::isNameValid PHP Method

isNameValid() public method

public isNameValid ( string $name ) : boolean
$name string
return boolean
    public function isNameValid($name);

Usage Example

 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();
 }
All Usage Examples Of PhpSpec\Util\NameChecker::isNameValid
NameChecker