コード例 #1
0
ファイル: JwtTest.php プロジェクト: psecio/jwt
 /**
  * Test the decoding of an invalid token
  * @expectedException \Psecio\Jwt\Exception\DecodeException
  */
 public function testDecodeJwtDataInvalidSections()
 {
     $header = new Header('test');
     $jwt = new Jwt($header);
     $jwt->issuer('http://example.org')->audience('http://example.com');
     $result = $jwt->encode();
     $result = substr($result, 0, strlen($result) - 100);
     $decoded = $jwt->decode($result);
 }