Conditions | 3 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
49 | private function readTestVectorsFile() |
||
50 | { |
||
51 | $decoded = json_decode(file_get_contents(__DIR__ .'/data/crypt_vectors.json'), true); |
||
52 | if (!$decoded || json_last_error() !== JSON_ERROR_NONE) { |
||
53 | throw new \RuntimeException('failed to read vectors file'); |
||
54 | } |
||
55 | |||
56 | return $decoded; |
||
57 | } |
||
58 | |||
71 |