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