From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sun, 6 Apr 2025 10:48:14 +0200
Subject: Modernize PHPUnit syntax

---
 tests/MabeEnumTest/EnumSetIteratorTest.php |  3 ++-
 tests/MabeEnumTest/EnumSetTest.php         | 11 ++++++-----
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/tests/MabeEnumTest/EnumSetIteratorTest.php b/tests/MabeEnumTest/EnumSetIteratorTest.php
index ed98c64..f2b0d23 100644
--- a/tests/MabeEnumTest/EnumSetIteratorTest.php
+++ b/tests/MabeEnumTest/EnumSetIteratorTest.php
@@ -14,6 +14,7 @@ use MabeEnumTest\TestAsset\Enum64;
 use MabeEnumTest\TestAsset\Enum65;
 use MabeEnumTest\TestAsset\Enum66;
 use OutOfBoundsException;
+use PHPUnit\Framework\Attributes\DataProvider;
 use PHPUnit\Framework\TestCase;
 
 /**
@@ -82,8 +83,8 @@ class EnumSetIteratorTest extends TestCase
 
     /**
      * @param class-string<Enum> $enumeration
-     * @dataProvider getIntegerEnumerations
      */
+    #[DataProvider('getIntegerEnumerations')]
     public function testNextCurrentOutOfRange(string $enumeration): void
     {
         $set   = new EnumSet($enumeration);
diff --git a/tests/MabeEnumTest/EnumSetTest.php b/tests/MabeEnumTest/EnumSetTest.php
index f6fe5c7..14c0f64 100644
--- a/tests/MabeEnumTest/EnumSetTest.php
+++ b/tests/MabeEnumTest/EnumSetTest.php
@@ -14,6 +14,7 @@ use MabeEnumTest\TestAsset\Enum64;
 use MabeEnumTest\TestAsset\Enum65;
 use MabeEnumTest\TestAsset\Enum66;
 use MabeEnumTest\TestAsset\EnumSetExt;
+use PHPUnit\Framework\Attributes\DataProvider;
 use PHPUnit\Framework\TestCase;
 
 /**
@@ -170,8 +171,8 @@ class EnumSetTest extends TestCase
 
     /**
      * @param class-string<Enum> $enumeration
-     * @dataProvider getIntegerEnumerations
      */
+    #[DataProvider('getIntegerEnumerations')]
     public function testAddRemove(string $enumeration): void
     {
         $set = new EnumSet($enumeration);
@@ -198,8 +199,8 @@ class EnumSetTest extends TestCase
 
     /**
      * @param class-string<Enum> $enumeration
-     * @dataProvider getIntegerEnumerations
      */
+    #[DataProvider('getIntegerEnumerations')]
     public function testAddRemoveIterable(string $enumeration): void
     {
         $set = new EnumSet($enumeration);
@@ -215,8 +216,8 @@ class EnumSetTest extends TestCase
 
     /**
      * @param class-string<Enum> $enumeration
-     * @dataProvider getIntegerEnumerations
      */
+    #[DataProvider('getIntegerEnumerations')]
     public function testWithWithout(string $enumeration): void
     {
         $set = new EnumSet($enumeration);
@@ -242,8 +243,8 @@ class EnumSetTest extends TestCase
 
     /**
      * @param class-string<Enum> $enumeration
-     * @dataProvider getIntegerEnumerations
      */
+    #[DataProvider('getIntegerEnumerations')]
     public function testWithWithoutIterable(string $enumeration): void
     {
         $set = new EnumSet($enumeration);
@@ -764,8 +765,8 @@ class EnumSetTest extends TestCase
 
     /**
      * @param class-string<Enum> $enumeration
-     * @dataProvider getIntegerEnumerations
      */
+    #[DataProvider('getIntegerEnumerations')]
     public function testIsEmpty(string $enumeration): void
     {
         $set1 = new EnumSet($enumeration, []);
