isCatchPhraseValid() protected static method

Validates a french catch phrase.
protected static isCatchPhraseValid ( string $catchPhrase ) : boolean
$catchPhrase string The catch phrase to validate.
return boolean (true if valid, false otherwise)
Ejemplo n.º 1
0
 public function testCatchPhraseValidationReturnsTrue()
 {
     $isCatchPhraseValid = Company::isCatchPhraseValid('La sécurité de rouler en toute simplicité');
     $this->assertTrue($isCatchPhraseValid);
 }
Ejemplo n.º 2
0
 public static function isCatchPhraseValid($catchPhrase)
 {
     return parent::isCatchPhraseValid($catchPhrase);
 }