spout/tests/Spout/Writer/Common/Creator/WriterFactoryTest.php
Adrien Loison ec5335cc23 Consolidate external EntityFactory
All entities will now be created through a single factory (including the Writers).
Also, added a EntityFactory::createRowFromArray() to make it easier to create rows
2017-11-05 13:14:33 +01:00

22 lines
449 B
PHP

<?php
namespace Box\Spout\Writer\Common\Creator;
use Box\Spout\Common\Exception\UnsupportedTypeException;
/**
* Class WriterFactoryTest
*/
class WriterFactoryTest extends \PHPUnit_Framework_TestCase
{
/**
* @return void
*/
public function testCreateWriterShouldThrowWithUnsupportedType()
{
$this->expectException(UnsupportedTypeException::class);
(new WriterFactory())->create('unsupportedType');
}
}