diff --git a/tests/Unit/Authentication/JWT/JWTManagerTest.php b/tests/Unit/Authentication/JWT/JWTManagerTest.php index 6acd82717..684281898 100644 --- a/tests/Unit/Authentication/JWT/JWTManagerTest.php +++ b/tests/Unit/Authentication/JWT/JWTManagerTest.php @@ -182,9 +182,9 @@ public function testIssueAddHeader(): void $this->assertIsString($token); $headers = $this->decodeJWT($token, 'header'); - $this->assertSame([ - 'extra_key' => 'extra_value', + $this->assertEqualsCanonicalizing([ 'typ' => 'JWT', + 'extra_key' => 'extra_value', 'alg' => 'HS256', ], $headers); }