From f2bba73510d5939781b697ba53d56b2c1c4110bb Mon Sep 17 00:00:00 2001 From: Rinat Gumirov Date: Thu, 3 Oct 2019 00:09:45 +0500 Subject: [PATCH] Add test for IOFactory::load --- tests/PhpSpreadsheetTests/IOFactoryTest.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 [