Total Complexity | 5 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class XmlTest extends TestCase |
||
10 | { |
||
11 | /** |
||
12 | * @dataProvider providerInvalidSimpleXML |
||
13 | * |
||
14 | * @param $filename |
||
15 | */ |
||
16 | public function testInvalidSimpleXML($filename) |
||
22 | } |
||
23 | |||
24 | public function providerInvalidSimpleXML() |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * Check if it can read XML Hyperlink correctly. |
||
36 | */ |
||
37 | public function testReadHyperlinks() |
||
38 | { |
||
39 | $reader = new Xml(); |
||
40 | $spreadsheet = $reader->load('../samples/templates/Excel2003XMLTest.xml'); |
||
41 | $firstSheet = $spreadsheet->getSheet(0); |
||
42 | |||
43 | $hyperlink = $firstSheet->getCell('L1'); |
||
44 | |||
45 | self::assertEquals(DataType::TYPE_STRING, $hyperlink->getDataType()); |
||
46 | self::assertEquals('PhpSpreadsheet', $hyperlink->getValue()); |
||
47 | self::assertEquals('https://phpspreadsheet.readthedocs.io', $hyperlink->getHyperlink()->getUrl()); |
||
48 | } |
||
49 | |||
50 | public function testReadWithoutStyle() |
||
55 | } |
||
56 | } |
||
57 |