Files
netslim-core/tests/Kernel/NotFoundExceptionTest.php
2026-03-20 22:13:41 +01:00

21 lines
515 B
PHP

<?php
declare(strict_types=1);
namespace Tests\Kernel;
use Netig\Netslim\Kernel\Support\Exception\NotFoundException;
use PHPUnit\Framework\TestCase;
#[\PHPUnit\Framework\Attributes\AllowMockObjectsWithoutExpectations]
final class NotFoundExceptionTest extends TestCase
{
public function testMessageContainsEntityAndIdentifier(): void
{
$exception = new NotFoundException('Ressource', 'mon-slug');
self::assertSame('Ressource introuvable : mon-slug', $exception->getMessage());
}
}