21 lines
515 B
PHP
21 lines
515 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Tests\Kernel;
|
|
|
|
use Netig\Netslim\Kernel\Support\Exception\NotFoundException;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
#[\PHPUnit\Framework\Attributes\AllowMockObjectsWithoutExpectations]
|
|
|
|
final class NotFoundExceptionTest extends TestCase
|
|
{
|
|
public function testMessageContainsEntityAndIdentifier(): void
|
|
{
|
|
$exception = new NotFoundException('Ressource', 'mon-slug');
|
|
|
|
self::assertSame('Ressource introuvable : mon-slug', $exception->getMessage());
|
|
}
|
|
}
|