replace PHPUnit annotations with attributes (#5608)
This commit is contained in:
@@ -12,6 +12,7 @@ namespace App\Tests\EventSubscriber;
|
||||
use App\EventSubscriber\PagerfantaExceptionSubscriber;
|
||||
use Pagerfanta\Exception\NotValidMaxPerPageException;
|
||||
use Pagerfanta\Exception\OutOfRangeCurrentPageException;
|
||||
use PHPUnit\Framework\Attributes\CoversClass;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpKernel\Event\ExceptionEvent;
|
||||
@@ -19,9 +20,7 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
use Symfony\Component\HttpKernel\HttpKernelInterface;
|
||||
use Symfony\Component\HttpKernel\KernelEvents;
|
||||
|
||||
/**
|
||||
* @covers \App\EventSubscriber\PagerfantaExceptionSubscriber
|
||||
*/
|
||||
#[CoversClass(PagerfantaExceptionSubscriber::class)]
|
||||
class PagerfantaExceptionSubscriberTest extends TestCase
|
||||
{
|
||||
public function testGetSubscribedEvents(): void
|
||||
|
||||
Reference in New Issue
Block a user