diff options
-rw-r--r-- | tests/JWTTest.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/JWTTest.php b/tests/JWTTest.php index 0605e4c..2aeb201 100644 --- a/tests/JWTTest.php +++ b/tests/JWTTest.php @@ -228,4 +228,10 @@ class JWTTest extends PHPUnit_Framework_TestCase $this->setExpectedException('DomainException'); JWT::decode($msg, 'my_key'); } + + public function testAdditionalHeaders() + { + $msg = JWT::encode('abc', 'my_key', 'HS256', null, array('cty' => 'test-eit;v=1')); + $this->assertEquals(JWT::decode($msg, 'my_key', array('HS256')), 'abc'); + } } |