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 33namespace Firebase \JWT ;
44
55use DomainException ;
6+ use InvalidArgumentException ;
67use UnexpectedValueException ;
78
89/**
Original file line number Diff line number Diff line change @@ -43,6 +43,20 @@ public function testParseJwkKeySet()
4343 self ::$ keys = $ keys ;
4444 }
4545
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+
4660 /**
4761 * @depends testParseJwkKeySet
4862 */
You can’t perform that action at this time.
0 commit comments