Conditions | 3 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | private function readTestVectorsFile() |
||
28 | { |
||
29 | $decoded = json_decode(file_get_contents(__DIR__ .'/data/crypt_vectors.json'), true); |
||
30 | if (!$decoded || json_last_error() !== JSON_ERROR_NONE) { |
||
31 | throw new \RuntimeException('failed to read vectors file'); |
||
32 | } |
||
33 | |||
34 | return $decoded; |
||
35 | } |
||
36 | |||
49 |