示例#1
0
文件: JwtTest.php 项目: maarky/jwt
 public function testAddClaim_testClaims()
 {
     $jwt = new Jwt($this->srcJwt, $this->secret);
     $newClaims = ['a' => 1];
     $expectedClaims = array_merge($this->claims, $newClaims);
     $this->assertEquals($expectedClaims, $jwt->addClaim(key($newClaims), current($newClaims))->getClaims()->get());
 }