json-schema/tests/Exception/RuntimeExceptionTest.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
416 B
PHP

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