Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function testDataCodecIntegrity() |
||
32 | { |
||
33 | $codec = new BinaryDataJsonCodecImplementation; |
||
34 | |||
35 | for ($i=0; $i<1000; ++$i) { |
||
36 | $data = random_bytes(1024 * 4); |
||
37 | |||
38 | $this->assertEquals($data, $codec->binary_data_json_decode($codec->binary_data_json_encode($data))); |
||
39 | } |
||
40 | } |
||
41 | } |
||
42 |