diff options
author | drtriumph <chris@firebase.com> | 2014-11-14 14:05:46 -0800 |
---|---|---|
committer | drtriumph <chris@firebase.com> | 2014-11-14 14:05:46 -0800 |
commit | c40229f5d15b067dcf58f30df262a1efe566fba6 (patch) | |
tree | 27ddb527614d4ffe73043ed1d82f0ffcd61c78aa /tests/JWTTest.php | |
parent | ea4db8dbf2d74ed75ff1e5c89ac42e55a9ff1d6f (diff) | |
download | php-jwt-c40229f5d15b067dcf58f30df262a1efe566fba6.zip php-jwt-c40229f5d15b067dcf58f30df262a1efe566fba6.tar.gz php-jwt-c40229f5d15b067dcf58f30df262a1efe566fba6.tar.bz2 |
Some minor cleanup from @brendo's PR with a quick rename
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'); } |