From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Mon, 4 Nov 2024 10:03:03 +0100
Subject: Proper require for tests failing with PHPUnit 11

---
 tests/Driver/AbstractCliBasedDriverTestTrait.php | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/Driver/AbstractCliBasedDriverTestTrait.php b/tests/Driver/AbstractCliBasedDriverTestTrait.php
index 2618563..3c001ac 100644
--- a/tests/Driver/AbstractCliBasedDriverTestTrait.php
+++ b/tests/Driver/AbstractCliBasedDriverTestTrait.php
@@ -14,6 +14,8 @@ namespace Joli\JoliNotif\tests\Driver;
 use Joli\JoliNotif\Driver\DriverInterface;
 use Joli\JoliNotif\Notification;
 use JoliCode\PhpOsHelper\OsHelper;
+use PHPUnit\Framework\Attributes\DataProvider;
+use PHPUnit\Framework\Attributes\RequiresPhpunit;
 use Symfony\Component\Process\Process;
 
 /**
@@ -36,9 +38,8 @@ trait AbstractCliBasedDriverTestTrait
         $this->assertSame($supported, $this->getDriver()->isSupported());
     }
 
-    /**
-     * @dataProvider provideValidNotifications
-     */
+    #[DataProvider('provideValidNotifications')]
+    #[RequiresPhpunit('< 11')]
     public function testConfigureProcessAcceptAnyValidNotification(Notification $notification, string $expectedCommandLine)
     {
         try {
