Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function testNoHeaderFooterStyle(): void |
||
15 | { |
||
16 | // header-style and footer-style are missing in styles.xml |
||
17 | $zipFile = 'zip://' . $this->file . '#styles.xml'; |
||
18 | $contents = (string) file_get_contents($zipFile); |
||
19 | self::assertStringContainsString('page-layout ', $contents); |
||
20 | self::assertStringNotContainsString('header-style', $contents); |
||
21 | self::assertStringNotContainsString('footer-style', $contents); |
||
22 | $reader = new OdsReader(); |
||
23 | $spreadsheet = $reader->load($this->file); |
||
24 | $sheet = $spreadsheet->getActiveSheet(); |
||
25 | self::assertSame('FirstCell', $sheet->getCell('A1')->getValue()); |
||
26 | $spreadsheet->disconnectWorksheets(); |
||
27 | } |
||
29 |