Example #1
0
 public function testGetTokenName_UnknownToken()
 {
     $this->assertNull(Token::getTokenName(50000));
 }
Example #2
0
 /**
  * Asserts that a value is a token of the given type
  */
 public function assertIsTokenOf($type, $token)
 {
     $this->assertThat($token, $this->isInstanceOf('\\vc\\Tokens\\Token'), "Value is not a Token");
     $this->assertEquals(\vc\Tokens\Token::getTokenName($type), $token->getName(), "Token is not of the correct type");
 }