Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | public function testInvalidXML($filename) |
||
39 | { |
||
40 | $this->expectException(\PhpOffice\PhpSpreadsheet\Reader\Exception::class); |
||
41 | |||
42 | $reader = new XmlScanner(); |
||
43 | $expectedResult = 'FAILURE: Should throw an Exception rather than return a value'; |
||
44 | $result = $reader->scanFile($filename); |
||
45 | self::assertEquals($expectedResult, $result); |
||
46 | } |
||
58 |