Move ReaderFactory into Common/Creator
This commit is contained in:
1 parent
d25a4ebd6d
commit
1b64a06fbe
4 files changed
+90
-77
No files matched your search
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Box\Spout\Reader\Common\Creator;
|
||||
|
||||
use Box\Spout\Common\Exception\UnsupportedTypeException;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Class ReaderFactoryTest
|
||||
*/
|
||||
class ReaderFactoryTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function testCreateReaderShouldThrowWithUnsupportedType()
|
||||
{
|
||||
$this->expectException(UnsupportedTypeException::class);
|
||||
|
||||
ReaderFactory::create('unsupportedType');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user