Files
slim-blog/tests/Shared/NotFoundExceptionTest.php
2026-03-16 08:50:42 +01:00

18 lines
420 B
PHP

<?php
declare(strict_types=1);
namespace Tests\Shared;
use App\Shared\Exception\NotFoundException;
use PHPUnit\Framework\TestCase;
final class NotFoundExceptionTest extends TestCase
{
public function testConstructorFormatsEntityAndIdentifierInMessage(): void
{
$exception = new NotFoundException('Article', 15);
self::assertSame('Article introuvable : 15', $exception->getMessage());
}
}