json-schema/tests/Exception/InvalidArgumentExceptionTest.php
David Porter ca697a0b91
Merge pull request #466 from gabriel-caruso/phpunit
Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase
2018-02-14 14:29:46 +13:00

17 lines
448 B
PHP

<?php
namespace JsonSchema\Tests\Exception;
use JsonSchema\Exception\InvalidArgumentException;
use PHPUnit\Framework\TestCase;
class InvalidArgumentExceptionTest extends TestCase
{
public function testHierarchy()
{
$exception = new InvalidArgumentException();
self::assertInstanceOf('\InvalidArgumentException', $exception);
self::assertInstanceOf('\JsonSchema\Exception\ExceptionInterface', $exception);
}
}