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