for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Thunder\Serializard\Tests;
use Thunder\Serializard\Exception\FormatAliasTypeException;
use Thunder\Serializard\Format\ArrayFormat;
use Thunder\Serializard\FormatContainer\FormatContainer;
/**
* @author Tomasz Kowalczyk <[email protected]>
*/
final class FormatContainerTest extends AbstractTestCase
{
public function testExceptionOnInvalidFormatAlias()
$formats = new FormatContainer();
$this->expectExceptionClass(FormatAliasTypeException::class);
$formats->add(new \stdClass(), new ArrayFormat());
}