Working state
This commit is contained in:
17
tests/Shared/NotFoundExceptionTest.php
Normal file
17
tests/Shared/NotFoundExceptionTest.php
Normal 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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user