Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | public function testSave() |
||
35 | { |
||
36 | $objReader = new \PHPExcel_Reader_Excel2007(); |
||
37 | $excel = $objReader->load('tests/metadata/template/simple.xlsx'); |
||
38 | |||
39 | $actual = $this->sut->save($excel, 'test.xlsx'); |
||
40 | |||
41 | $this->assertEquals('tests/metadata/template/test.xlsx', $actual); |
||
42 | $this->assertFileExists('tests/metadata/template/test.xlsx'); |
||
43 | } |
||
44 | |||
46 |
If you suppress an error, we recommend checking for the error condition explicitly: