1 | <?php |
||
25 | final class ExceptionTest extends TestCase |
||
26 | { |
||
27 | /** |
||
28 | * @expectedException \InvalidArgumentException |
||
29 | * @expectedExceptionMessage Integrity check failed |
||
30 | * |
||
31 | * @test |
||
32 | */ |
||
33 | public function integrityCheckFailed() |
||
40 | |||
41 | /** |
||
42 | * @expectedException \InvalidArgumentException |
||
43 | * @expectedExceptionMessage Bad key size |
||
44 | * |
||
45 | * @test |
||
46 | */ |
||
47 | public function a128KWBadKeySize() |
||
54 | |||
55 | /** |
||
56 | * @expectedException \InvalidArgumentException |
||
57 | * @expectedExceptionMessage Bad key size |
||
58 | * |
||
59 | * @test |
||
60 | */ |
||
61 | public function a128KWEmptyKey() |
||
68 | |||
69 | /** |
||
70 | * @expectedException \InvalidArgumentException |
||
71 | * @expectedExceptionMessage Integrity check failed |
||
72 | * |
||
73 | * @test |
||
74 | */ |
||
75 | public function a128KWIntegrityNotVerified() |
||
82 | |||
83 | /** |
||
84 | * @expectedException \InvalidArgumentException |
||
85 | * @expectedExceptionMessage Bad data |
||
86 | * |
||
87 | * @test |
||
88 | */ |
||
89 | public function wrap64BitsKeyDataWith128BitKEK() |
||
96 | |||
97 | /** |
||
98 | * @expectedException \InvalidArgumentException |
||
99 | * @expectedExceptionMessage Integrity check failed |
||
100 | * |
||
101 | * @test |
||
102 | */ |
||
103 | public function badData() |
||
110 | } |
||
111 |