We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cd7ae0 commit efc04f9Copy full SHA for efc04f9
composer.json
@@ -28,6 +28,6 @@
28
}
29
},
30
"require-dev": {
31
- "phpunit/phpunit": "^4.8|^5"
+ "phpunit/phpunit": ">=4.8 <=9"
32
33
tests/JWTTest.php
@@ -8,6 +8,17 @@ class JWTTest extends TestCase
8
{
9
public static $opensslVerifyReturnValue;
10
11
+ /*
12
+ * For compatibility with PHPUnit 4.8 and PHP < 5.6
13
+ */
14
+ public function setExpectedException($exceptionName, $message = '', $code = NULL) {
15
+ if (method_exists($this, 'expectException')) {
16
+ $this->expectException($exceptionName);
17
+ } else {
18
+ parent::setExpectedException($exceptionName, $message, $code);
19
+ }
20
21
+
22
public function testEncodeDecode()
23
24
$msg = JWT::encode('abc', 'my_key');
0 commit comments