spout/tests/Spout/Writer/Common/Creator/WriterFactoryTest.php
2017-11-27 00:24:13 +01:00

23 lines
462 B
PHP

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