| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public function testReadIntArray(): void |
||
| 28 | { |
||
| 29 | $tempFile = (string) tempnam(sys_get_temp_dir(), 'phpMyAdmin_StringReaderTest'); |
||
| 30 | file_put_contents($tempFile, "\0\0\0\0\0\0\0\0\0\0\0\0"); |
||
| 31 | $this->assertFileExists($tempFile); |
||
| 32 | $stringReader = new StringReader($tempFile); |
||
| 33 | unlink($tempFile); |
||
| 34 | $actual = $stringReader->readintarray('V', 2, 2); |
||
| 35 | $this->assertSame([ |
||
| 36 | 1 => 0, |
||
| 37 | 2 => 0, |
||
| 38 | ], $actual); |
||
| 39 | } |
||
| 41 |