We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fae8c4 commit f42c911Copy full SHA for f42c911
src/JWK.php
@@ -3,6 +3,7 @@
3
namespace Firebase\JWT;
4
5
use DomainException;
6
+use InvalidArgumentException;
7
use UnexpectedValueException;
8
9
/**
tests/JWKTest.php
@@ -43,6 +43,20 @@ public function testParseJwkKeySet()
43
self::$keys = $keys;
44
}
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
60
61
* @depends testParseJwkKeySet
62
*/
0 commit comments