From c3f0014d5a434731f0bdde764feec2d98ce81829 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Thu, 5 Dec 2019 10:00:06 +0000 Subject: [PATCH] Update Tests/jwtTest.php git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5791 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- Tests/jwtTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/jwtTest.php b/Tests/jwtTest.php index 2d18562..3116c12 100644 --- a/Tests/jwtTest.php +++ b/Tests/jwtTest.php @@ -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.".