Exemplo n.º 1
0
 public function testAddClaims()
 {
     $jwt = new Jwt($this->claims, $this->secret, $this->header);
     $claims = ['a' => 1, 'b' => 2];
     $jwt->addClaims($claims);
     $this->assertEquals(array_merge($this->claims, $claims), $jwt->getClaims()->get());
 }