Update Tests/jwtTest.php
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5791 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -62,7 +62,7 @@ class test_jwt extends PHPUnit_Framework_TestCase
|
||||
"eyJwYXlsb2FkIjoidmFsdWUifQ.".
|
||||
"0ByHaODQQjYEvmgU2u5LI034RRMc7CKJQ752ys19Fqj7QiTJO7-trerYKCxCyuge",
|
||||
"key to use");
|
||||
$this->assertSame ((object) (array ("payload" => "value")), $res);
|
||||
$this->assertSame ((object)array ("payload" => "value"), $res);
|
||||
}
|
||||
|
||||
public function test_decode_2 ()
|
||||
@@ -74,13 +74,13 @@ class test_jwt extends PHPUnit_Framework_TestCase
|
||||
"eyJwYXlsb2FkIjoidmFsdWUifQ.".
|
||||
"0ByHaODQQjYEvmgU2u5LI034RRMc7CKJQ752ys19Fqj7QiTJO7-trerYKCxCyuge",
|
||||
"key to use");
|
||||
$this->assertSame ((object) (array ("payload" => "value")), $res);
|
||||
$this->assertSame ((object)array ("payload" => "value"), $res);
|
||||
}
|
||||
|
||||
public function test_decode_3 ()
|
||||
{
|
||||
$jwt = new jwt ();
|
||||
$this->expectException ("Exception", "JWT Header not readable");
|
||||
$this->expectException ("Exception", "JWT with Empty algorithm");
|
||||
$res = $jwt->decode (
|
||||
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUXXXXXJ9.".
|
||||
"eyJwYXlsb2FkIjoidmFsdWUifQ.".
|
||||
|
||||
Reference in New Issue
Block a user