Files
slim-blog/tests/Shared/NotFoundExceptionTest.php
2026-03-16 09:25:44 +01:00

20 lines
492 B
PHP

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