File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 3
3
namespace Firebase \JWT ;
4
4
5
5
use DomainException ;
6
+ use InvalidArgumentException ;
6
7
use UnexpectedValueException ;
7
8
8
9
/**
Original file line number Diff line number Diff line change @@ -43,6 +43,20 @@ public function testParseJwkKeySet()
43
43
self ::$ keys = $ keys ;
44
44
}
45
45
46
+ public function testParseJwkKey_empty ()
47
+ {
48
+ $ this ->setExpectedException ('InvalidArgumentException ' , 'JWK must not be empty ' );
49
+
50
+ JWK ::parseKeySet (array ('keys ' => array (array ())));
51
+ }
52
+
53
+ public function testParseJwkKeySet_empty ()
54
+ {
55
+ $ this ->setExpectedException ('InvalidArgumentException ' , 'JWK Set did not contain any keys ' );
56
+
57
+ JWK ::parseKeySet (array ('keys ' => array ()));
58
+ }
59
+
46
60
/**
47
61
* @depends testParseJwkKeySet
48
62
*/
You can’t perform that action at this time.
0 commit comments