assertSame($expected, $actual); } public function providerIdentify() { return [ ['../samples/templates/26template.xlsx', 'Xlsx'], ['../samples/templates/GnumericTest.gnumeric', 'Gnumeric'], ['../samples/templates/30template.xls', 'Xls'], ['../samples/templates/OOCalcTest.ods', 'Ods'], ['../samples/templates/SylkTest.slk', 'Slk'], ['../samples/templates/Excel2003XMLTest.xml', 'Xml'], ]; } /** * @expectedException \InvalidArgumentException */ public function testIdentifyNonExistingFileThrowException() { IOFactory::identify('/non/existing/file'); } /** * @expectedException \InvalidArgumentException */ public function testIdentifyExistingDirectoryThrowExceptions() { IOFactory::identify('.'); } }