spout/tests/Spout/Writer/WriterFactoryTest.php
2017-11-05 02:21:09 +01:00

22 lines
426 B
PHP

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