1 | <?php |
||
23 | final class ExceptionTest extends TestCase |
||
24 | { |
||
25 | /** |
||
26 | * @expectedException \InvalidArgumentException |
||
27 | * @expectedExceptionMessage Integrity check failed |
||
28 | */ |
||
29 | public function testIntegrityCheckFailed() |
||
36 | |||
37 | /** |
||
38 | * @expectedException \InvalidArgumentException |
||
39 | * @expectedExceptionMessage Bad key size |
||
40 | */ |
||
41 | public function testA128KWBadKeySize() |
||
48 | |||
49 | /** |
||
50 | * @expectedException \InvalidArgumentException |
||
51 | * @expectedExceptionMessage Bad key size |
||
52 | */ |
||
53 | public function testA128KWEmptyKey() |
||
60 | |||
61 | /** |
||
62 | * @expectedException \InvalidArgumentException |
||
63 | * @expectedExceptionMessage Integrity check failed |
||
64 | */ |
||
65 | public function testA128KWIntegrityNotVerified() |
||
72 | |||
73 | /** |
||
74 | * @expectedException \InvalidArgumentException |
||
75 | * @expectedExceptionMessage Bad data |
||
76 | */ |
||
77 | public function testWrap64BitsKeyDataWith128BitKEK() |
||
84 | |||
85 | /** |
||
86 | * @expectedException \InvalidArgumentException |
||
87 | * @expectedExceptionMessage Integrity check failed |
||
88 | */ |
||
89 | public function testBadData() |
||
96 | } |
||
97 |