Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
16 | public function testGetReader() |
||
17 | { |
||
18 | $factory = new ExcelReaderFactory(); |
||
19 | $reader = $factory->getReader(new \SplFileObject(__DIR__.'/fixtures/data_column_headers.xlsx')); |
||
20 | $this->assertInstanceOf('\Port\Excel\ExcelReader', $reader); |
||
21 | $this->assertCount(4, $reader); |
||
22 | |||
23 | $factory = new ExcelReaderFactory(0); |
||
24 | $reader = $factory->getReader(new \SplFileObject(__DIR__.'/fixtures/data_column_headers.xlsx')); |
||
25 | $this->assertCount(3, $reader); |
||
26 | } |
||
27 | } |
||
28 |