Skip to content

Commit

Permalink
Adding test
Browse files Browse the repository at this point in the history
  • Loading branch information
mcocaro committed Jun 17, 2015
1 parent 2de26c2 commit abc1f5b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/JWTTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,10 @@ public function testMissingAlgorithm()
$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');
}
}

0 comments on commit abc1f5b

Please sign in to comment.