From 12985f33b63e122045dbbcf6af7fcb6958339390 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane?= Date: Wed, 8 May 2024 11:30:47 +0200 Subject: [PATCH] phpunit ^11 (#119) --- composer.json | 6 +++--- tests/Unit/SymfonyNotifierEventListenerTest.php | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 0b77c18..7c683d5 100644 --- a/composer.json +++ b/composer.json @@ -11,15 +11,15 @@ } ], "require": { - "php": "~8.1.0 || ~8.2.0 || ~8.3.0", + "php": "~8.2.0 || ~8.3.0", "job-runner/job-runner": "^1.3", "symfony/notifier": "^6.0 || ^7.0" }, "require-dev": { "doctrine/coding-standard": "^12.0", - "phpunit/phpunit": "^10.5.19", + "phpunit/phpunit": "^11.0.3", "psalm/plugin-phpunit": "^0.19.0", - "vimeo/psalm": "^5.24" + "vimeo/psalm": "dev-master" }, "autoload": { "psr-4": { diff --git a/tests/Unit/SymfonyNotifierEventListenerTest.php b/tests/Unit/SymfonyNotifierEventListenerTest.php index 546d476..dfef942 100644 --- a/tests/Unit/SymfonyNotifierEventListenerTest.php +++ b/tests/Unit/SymfonyNotifierEventListenerTest.php @@ -6,12 +6,13 @@ use JobRunner\JobRunner\Job\Job; use JobRunner\JobRunner\SymfonyNotifier\SymfonyNotifierEventListener; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Symfony\Component\Notifier\Notification\Notification; use Symfony\Component\Notifier\NotifierInterface; use Symfony\Component\Notifier\Recipient\RecipientInterface; -/** @covers \JobRunner\JobRunner\SymfonyNotifier\SymfonyNotifierEventListener */ +#[CoversClass(SymfonyNotifierEventListener::class)] class SymfonyNotifierEventListenerTest extends TestCase { public function testSuccess(): void