Working state

This commit is contained in:
julien
2026-03-16 08:50:42 +01:00
parent 81200f81cd
commit b5a728e669
7 changed files with 128 additions and 4 deletions

View File

@@ -0,0 +1,17 @@
<?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());
}
}