18 lines
420 B
PHP
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());
|
|
}
|
|
}
|