Skip to content

Commit 3d8b046

Browse files
authored
test: decode without verify
1 parent e2dc2a6 commit 3d8b046

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/JWTTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ public function test_kid()
116116
$token = $jwt->encode($payload = ['a' => 1, 'exp' => time() + 1000], ['kid' => 'key2']);
117117

118118
$this->assertSame($payload, $jwt->decode($token));
119+
$this->assertSame($payload, $jwt->decode($token, false));
119120

120121
return $jwt;
121122
}

0 commit comments

Comments
 (0)