Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | private function readExport(string $hostname, string $url): Spreadsheet |
||
20 | { |
||
21 | $baseUrl = 'https://' . $hostname . '/data/export/'; |
||
22 | |||
23 | self::assertStringStartsWith($baseUrl, $url, 'must be absolute URL'); |
||
24 | |||
25 | // Make sure the XLSX file was generated on disk |
||
26 | $path = 'htdocs/data/export/' . str_replace($baseUrl, '', $url); |
||
27 | self::assertFileExists($path, 'exported file must exist on disk'); |
||
28 | |||
29 | return $this->readSpreadsheet($path); |
||
30 | } |
||
48 |