Add test for IOFactory::load
This commit is contained in:
parent
445cc18e39
commit
f2bba73510
|
@ -104,6 +104,19 @@ class IOFactoryTest extends TestCase
|
||||||
self::assertInstanceOf($expectedClass, $actual);
|
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()
|
public function providerIdentify()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
|
|
Loading…
Reference in New Issue