@@ -159,7 +159,7 @@ public function testInvalidTokenWithNbfLeeway()
159
159
"nbf " => time () + 65 ); // not before too far in future
160
160
$ encoded = JWT ::encode ($ payload , 'my_key ' );
161
161
$ this ->setExpectedException ('Firebase\JWT\BeforeValidException ' );
162
- $ decoded = JWT ::decode ($ encoded , 'my_key ' , array ('HS256 ' ));
162
+ JWT ::decode ($ encoded , 'my_key ' , array ('HS256 ' ));
163
163
JWT ::$ leeway = 0 ;
164
164
}
165
165
@@ -183,7 +183,7 @@ public function testInvalidTokenWithIatLeeway()
183
183
"iat " => time () + 65 ); // issued too far in future
184
184
$ encoded = JWT ::encode ($ payload , 'my_key ' );
185
185
$ this ->setExpectedException ('Firebase\JWT\BeforeValidException ' );
186
- $ decoded = JWT ::decode ($ encoded , 'my_key ' , array ('HS256 ' ));
186
+ JWT ::decode ($ encoded , 'my_key ' , array ('HS256 ' ));
187
187
JWT ::$ leeway = 0 ;
188
188
}
189
189
@@ -194,7 +194,7 @@ public function testInvalidToken()
194
194
"exp " => time () + 20 ); // time in the future
195
195
$ encoded = JWT ::encode ($ payload , 'my_key ' );
196
196
$ this ->setExpectedException ('Firebase\JWT\SignatureInvalidException ' );
197
- $ decoded = JWT ::decode ($ encoded , 'my_key2 ' , array ('HS256 ' ));
197
+ JWT ::decode ($ encoded , 'my_key2 ' , array ('HS256 ' ));
198
198
}
199
199
200
200
public function testNullKeyFails ()
@@ -204,7 +204,7 @@ public function testNullKeyFails()
204
204
"exp " => time () + JWT ::$ leeway + 20 ); // time in the future
205
205
$ encoded = JWT ::encode ($ payload , 'my_key ' );
206
206
$ this ->setExpectedException ('InvalidArgumentException ' );
207
- $ decoded = JWT ::decode ($ encoded , null , array ('HS256 ' ));
207
+ JWT ::decode ($ encoded , null , array ('HS256 ' ));
208
208
}
209
209
210
210
public function testEmptyKeyFails ()
@@ -214,7 +214,7 @@ public function testEmptyKeyFails()
214
214
"exp " => time () + JWT ::$ leeway + 20 ); // time in the future
215
215
$ encoded = JWT ::encode ($ payload , 'my_key ' );
216
216
$ this ->setExpectedException ('InvalidArgumentException ' );
217
- $ decoded = JWT ::decode ($ encoded , '' , array ('HS256 ' ));
217
+ JWT ::decode ($ encoded , '' , array ('HS256 ' ));
218
218
}
219
219
220
220
public function testRSEncodeDecode ()
0 commit comments