/** * Returns the name of the constant representing this token as a string. * * @return string */ public function getName() { return Constants::getTokenName($this->id); }
/** * @covers spriebsch\PHPca\Constants::getTokenName * @expectedException \RuntimeException */ public function testGetTokenNameThrowsExceptionOnUnknownToken() { Constants::init(); Constants::getTokenName(9999); }