mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-12 10:18:39 +00:00
34 lines
877 B
PHP
Executable File
34 lines
877 B
PHP
Executable File
<?php
|
|
/**
|
|
* Jingga
|
|
*
|
|
* PHP Version 8.2
|
|
*
|
|
* @package tests
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 2.0
|
|
* @version 1.0.0
|
|
* @link https://jingga.app
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace phpOMS\tests\DataStorage\Database\Exception;
|
|
|
|
use phpOMS\DataStorage\Database\Exception\InvalidMapperException;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
#[\PHPUnit\Framework\Attributes\CoversClass(\phpOMS\DataStorage\Database\Exception\InvalidMapperException::class)]
|
|
final class InvalidMapperExceptionTest extends \PHPUnit\Framework\TestCase
|
|
{
|
|
#[\PHPUnit\Framework\Attributes\Group('framework')]
|
|
public function testException() : void
|
|
{
|
|
self::assertInstanceOf(\RuntimeException::class, new InvalidMapperException(''));
|
|
|
|
$e = new InvalidMapperException('TestMapper');
|
|
self::assertStringContainsString('TestMapper', $e->getMessage());
|
|
}
|
|
}
|