1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
<?php
namespace JsonSchema\Tests\Exception;
use JsonSchema\Exception\InvalidSchemaMediaTypeException;
use PHPUnit\Framework\TestCase;
class InvalidSchemaMediaTypeExceptionTest extends TestCase
{
public function testHierarchy(): void
{
$exception = new InvalidSchemaMediaTypeException();
self::assertInstanceOf('\RuntimeException', $exception);
self::assertInstanceOf('\JsonSchema\Exception\RuntimeException', $exception);
self::assertInstanceOf('\JsonSchema\Exception\ExceptionInterface', $exception);
}
}
|