diff --git a/tests/PhpSpreadsheetTests/IOFactoryTest.php b/tests/PhpSpreadsheetTests/IOFactoryTest.php index 4c9c52d0..90a9af0e 100644 --- a/tests/PhpSpreadsheetTests/IOFactoryTest.php +++ b/tests/PhpSpreadsheetTests/IOFactoryTest.php @@ -104,6 +104,19 @@ class IOFactoryTest extends TestCase self::assertInstanceOf($expectedClass, $actual); } + /** + * @dataProvider providerIdentify + * + * @param string $file + * @param string $expectedName + * @param string $expectedClass + */ + public function testLoad($file, $expectedName, $expectedClass) + { + $actual = IOFactory::load($file); + self::assertInstanceOf(Spreadsheet::class, $actual); + } + public function providerIdentify() { return [