Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class BadHyperlinkTest extends TestCase |
||
13 | { |
||
14 | public function testBadHyperlink(): void |
||
15 | { |
||
16 | $reader = new XlsxReader(); |
||
17 | $infile = 'tests/data/Reader/XLSX/sec-j47r.dontuse'; |
||
18 | $spreadsheet = $reader->load($infile); |
||
19 | $writer = new HtmlWriter($spreadsheet); |
||
20 | $html = $writer->generateHtmlAll(); |
||
21 | self::assertStringContainsString('<td class="column0 style1 f">jav	ascript:alert()</td>', $html); |
||
22 | $spreadsheet->disconnectWorksheets(); |
||
23 | } |
||
24 | |||
25 | public function testControlCharacter(): void |
||
34 | } |
||
35 | } |
||
36 |