示例#1
0
文件: Token.php 项目: Nycto/phpVocab
 public function testGetTokenName_UnknownToken()
 {
     $this->assertNull(Token::getTokenName(50000));
 }
示例#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");
 }