diff options
Diffstat (limited to 'tests/JWTTest.php')
-rw-r--r-- | tests/JWTTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/JWTTest.php b/tests/JWTTest.php index d9abe4e..5a76ed4 100644 --- a/tests/JWTTest.php +++ b/tests/JWTTest.php @@ -45,12 +45,12 @@ class JWTTest extends PHPUnit_Framework_TestCase JWT::decode($encoded, 'my_key'); } - public function testTooEarlyToken() + public function testBeforeValidToken() { - $this->setExpectedException('TooEarlyException'); + $this->setExpectedException('BeforeValidException'); $payload = array( "message" => "abc", - "nbf" => time() + 20); // time in the past + "nbf" => time() + 20); // time in the future $encoded = JWT::encode($payload, 'my_key'); JWT::decode($encoded, 'my_key'); } |