コード例 #1
0
ファイル: Token.php プロジェクト: Nycto/phpVocab
 public function testGetTokenName_UnknownToken()
 {
     $this->assertNull(Token::getTokenName(50000));
 }
コード例 #2
0
ファイル: TestCase.php プロジェクト: Nycto/phpVocab
 /**
  * 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");
 }