Exemple #1
0
 /**
  * @return string
  */
 public function getIdentifier()
 {
     $name = $this->getName();
     $class = $this->getClass();
     if ($name) {
         return Utils::classToIdentifier($name);
     } else {
         return Utils::classToIdentifier($class);
     }
 }
Exemple #2
0
 public function testClassToIdentifierWithValidIdentifier()
 {
     $this->assertSame('aValidIdentifier', Utils::classToIdentifier('aValidIdentifier'));
 }