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()); }