예제 #1
0
파일: JwtTest.php 프로젝트: maarky/jwt
 public function testAddClaims_testClaims()
 {
     $jwt = new Jwt($this->srcJwt, $this->secret);
     $newClaims = ['a' => 1, 'b' => 2];
     $expectedClaims = array_merge($this->claims, $newClaims);
     $this->assertEquals($expectedClaims, $jwt->addClaims($newClaims)->getClaims()->get());
 }