コード例 #1
0
ファイル: JwtTest.php プロジェクト: psecio/jwt
 /**
  * Testing the addition of a claim via the JWT class
  */
 public function testAddClaim()
 {
     $header = new Header('test');
     $jwt = new Jwt($header);
     $claim = new \Psecio\Jwt\ClaimStub('test1234');
     $jwt->addClaim($claim);
     $this->assertEquals(count($jwt->getClaims()), 1);
 }