Add test for IOFactory::load

This commit is contained in:
Rinat Gumirov 2019-10-03 00:09:45 +05:00 committed by Adrien Crivelli
parent 445cc18e39
commit f2bba73510
1 changed files with 13 additions and 0 deletions

View File

@ -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 [