From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Mon, 20 May 2024 11:49:06 +0200
Subject: Group nophpunit10 for tests failing with PHPUnit 10

Bug-Debian: https://bugs.debian.org/1039760
---
 tests/PregTests/GrepTest.php                  | 2 ++
 tests/PregTests/IsMatchAllTest.php            | 2 ++
 tests/PregTests/IsMatchAllWithOffsetsTest.php | 2 ++
 tests/PregTests/IsMatchTest.php               | 2 ++
 tests/PregTests/IsMatchWithOffsetsTest.php    | 2 ++
 tests/PregTests/MatchAllTest.php              | 2 ++
 tests/PregTests/MatchTest.php                 | 2 ++
 tests/PregTests/ReplaceCallbackArrayTest.php  | 2 ++
 tests/PregTests/ReplaceCallbackTest.php       | 2 ++
 tests/PregTests/ReplaceTest.php               | 2 ++
 tests/PregTests/SplitTest.php                 | 2 ++
 tests/PregTests/SplitWithOffsetsTest.php      | 2 ++
 tests/RegexTests/IsMatchTest.php              | 2 ++
 tests/RegexTests/MatchAllTest.php             | 2 ++
 tests/RegexTests/MatchTest.php                | 2 ++
 tests/RegexTests/ReplaceCallbackArrayTest.php | 2 ++
 tests/RegexTests/ReplaceCallbackTest.php      | 2 ++
 tests/RegexTests/ReplaceTest.php              | 2 ++
 18 files changed, 36 insertions(+)

diff --git a/tests/PregTests/GrepTest.php b/tests/PregTests/GrepTest.php
index 3076a18..fcee4ca 100644
--- a/tests/PregTests/GrepTest.php
+++ b/tests/PregTests/GrepTest.php
@@ -13,6 +13,7 @@ namespace Composer\Pcre\PregTests;
 
 use Composer\Pcre\BaseTestCase;
 use Composer\Pcre\Preg;
+use PHPUnit\Framework\Attributes\Group;
 
 class GrepTest extends BaseTestCase
 {
@@ -39,6 +40,7 @@ class GrepTest extends BaseTestCase
         @Preg::grep($pattern, array('a', 'b', 'c'));
     }
 
+    #[Group('nophpunit10')]
     public function testBadPatternTriggersWarningByDefault(): void
     {
         $this->expectPcreWarning();
diff --git a/tests/PregTests/IsMatchAllTest.php b/tests/PregTests/IsMatchAllTest.php
index 4a40601..95fc9fd 100644
--- a/tests/PregTests/IsMatchAllTest.php
+++ b/tests/PregTests/IsMatchAllTest.php
@@ -13,6 +13,7 @@ namespace Composer\Pcre\PregTests;
 
 use Composer\Pcre\BaseTestCase;
 use Composer\Pcre\Preg;
+use PHPUnit\Framework\Attributes\Group;
 
 class IsMatchAllTest extends BaseTestCase
 {
@@ -47,6 +48,7 @@ class IsMatchAllTest extends BaseTestCase
         @Preg::isMatchAll($pattern, 'abcdefghijklmnopqrstuvwxyz');
     }
 
+    #[Group('nophpunit10')]
     public function testBadPatternTriggersWarningByDefault(): void
     {
         $this->expectPcreWarning();
diff --git a/tests/PregTests/IsMatchAllWithOffsetsTest.php b/tests/PregTests/IsMatchAllWithOffsetsTest.php
index 4a4e803..9876c7e 100644
--- a/tests/PregTests/IsMatchAllWithOffsetsTest.php
+++ b/tests/PregTests/IsMatchAllWithOffsetsTest.php
@@ -13,6 +13,7 @@ namespace Composer\Pcre\PregTests;
 
 use Composer\Pcre\BaseTestCase;
 use Composer\Pcre\Preg;
+use PHPUnit\Framework\Attributes\Group;
 
 class IsMatchAllWithOffsetsTest extends BaseTestCase
 {
@@ -41,6 +42,7 @@ class IsMatchAllWithOffsetsTest extends BaseTestCase
         @Preg::isMatchAllWithOffsets($pattern, 'abcdefghijklmnopqrstuvwxyz', $matches);
     }
 
+    #[Group('nophpunit10')]
     public function testBadPatternTriggersWarningByDefault(): void
     {
         $this->expectPcreWarning();
diff --git a/tests/PregTests/IsMatchTest.php b/tests/PregTests/IsMatchTest.php
index dd7354a..50eff26 100644
--- a/tests/PregTests/IsMatchTest.php
+++ b/tests/PregTests/IsMatchTest.php
@@ -13,6 +13,7 @@ namespace Composer\Pcre\PregTests;
 
 use Composer\Pcre\BaseTestCase;
 use Composer\Pcre\Preg;
+use PHPUnit\Framework\Attributes\Group;
 
 class IsMatchTest extends BaseTestCase
 {
@@ -47,6 +48,7 @@ class IsMatchTest extends BaseTestCase
         @Preg::isMatch($pattern, 'abcdefghijklmnopqrstuvwxyz');
     }
 
+    #[Group('nophpunit10')]
     public function testBadPatternTriggersWarningByDefault(): void
     {
         $this->expectPcreWarning();
diff --git a/tests/PregTests/IsMatchWithOffsetsTest.php b/tests/PregTests/IsMatchWithOffsetsTest.php
index 853efdd..f93a232 100644
--- a/tests/PregTests/IsMatchWithOffsetsTest.php
+++ b/tests/PregTests/IsMatchWithOffsetsTest.php
@@ -13,6 +13,7 @@ namespace Composer\Pcre\PregTests;
 
 use Composer\Pcre\BaseTestCase;
 use Composer\Pcre\Preg;
+use PHPUnit\Framework\Attributes\Group;
 
 class IsMatchWithOffsetsTest extends BaseTestCase
 {
@@ -41,6 +42,7 @@ class IsMatchWithOffsetsTest extends BaseTestCase
         @Preg::isMatchWithOffsets($pattern, 'abcdefghijklmnopqrstuvwxyz', $matches);
     }
 
+    #[Group('nophpunit10')]
     public function testBadPatternTriggersWarningByDefault(): void
     {
         $this->expectPcreWarning();
diff --git a/tests/PregTests/MatchAllTest.php b/tests/PregTests/MatchAllTest.php
index dada88d..02e78eb 100644
--- a/tests/PregTests/MatchAllTest.php
+++ b/tests/PregTests/MatchAllTest.php
@@ -14,6 +14,7 @@ namespace Composer\Pcre\PregTests;
 use Composer\Pcre\BaseTestCase;
 use Composer\Pcre\Preg;
 use Composer\Pcre\UnexpectedNullMatchException;
+use PHPUnit\Framework\Attributes\Group;
 
 class MatchAllTest extends BaseTestCase
 {
@@ -63,6 +64,7 @@ class MatchAllTest extends BaseTestCase
         @Preg::matchAll($pattern, 'abcdefghijklmnopqrstuvwxyz');
     }
 
+    #[Group('nophpunit10')]
     public function testBadPatternTriggersWarningByDefault(): void
     {
         $this->expectPcreWarning();
diff --git a/tests/PregTests/MatchTest.php b/tests/PregTests/MatchTest.php
index ae993d9..06bafe3 100644
--- a/tests/PregTests/MatchTest.php
+++ b/tests/PregTests/MatchTest.php
@@ -14,6 +14,7 @@ namespace Composer\Pcre\PregTests;
 use Composer\Pcre\BaseTestCase;
 use Composer\Pcre\Preg;
 use Composer\Pcre\UnexpectedNullMatchException;
+use PHPUnit\Framework\Attributes\Group;
 
 class MatchTest extends BaseTestCase
 {
@@ -76,6 +77,7 @@ class MatchTest extends BaseTestCase
         @Preg::match($pattern, 'abcdefghijklmnopqrstuvwxyz');
     }
 
+    #[Group('nophpunit10')]
     public function testBadPatternTriggersWarningByDefault(): void
     {
         $this->expectPcreWarning();
diff --git a/tests/PregTests/ReplaceCallbackArrayTest.php b/tests/PregTests/ReplaceCallbackArrayTest.php
index 9e1965b..8c50b00 100644
--- a/tests/PregTests/ReplaceCallbackArrayTest.php
+++ b/tests/PregTests/ReplaceCallbackArrayTest.php
@@ -13,6 +13,7 @@ namespace Composer\Pcre\PregTests;
 
 use Composer\Pcre\BaseTestCase;
 use Composer\Pcre\Preg;
+use PHPUnit\Framework\Attributes\Group;
 
 /**
  * @requires PHP 7.0
@@ -62,6 +63,7 @@ class ReplaceCallbackArrayTest extends BaseTestCase
         }), 'abcd');
     }
 
+    #[Group('nophpunit10')]
     public function testBadPatternTriggersWarningByDefault(): void
     {
         $this->expectPcreWarning();
diff --git a/tests/PregTests/ReplaceCallbackTest.php b/tests/PregTests/ReplaceCallbackTest.php
index 07e9bb3..e64d515 100644
--- a/tests/PregTests/ReplaceCallbackTest.php
+++ b/tests/PregTests/ReplaceCallbackTest.php
@@ -14,6 +14,7 @@ namespace Composer\Pcre\PregTests;
 use Composer\Pcre\BaseTestCase;
 use Composer\Pcre\Preg;
 use Composer\Pcre\UnexpectedNullMatchException;
+use PHPUnit\Framework\Attributes\Group;
 
 class ReplaceCallbackTest extends BaseTestCase
 {
@@ -110,6 +111,7 @@ class ReplaceCallbackTest extends BaseTestCase
         }, 'abcd');
     }
 
+    #[Group('nophpunit10')]
     public function testBadPatternTriggersWarningByDefault(): void
     {
         $this->expectPcreWarning();
diff --git a/tests/PregTests/ReplaceTest.php b/tests/PregTests/ReplaceTest.php
index ce2fa46..7d858dc 100644
--- a/tests/PregTests/ReplaceTest.php
+++ b/tests/PregTests/ReplaceTest.php
@@ -13,6 +13,7 @@ namespace Composer\Pcre\PregTests;
 
 use Composer\Pcre\BaseTestCase;
 use Composer\Pcre\Preg;
+use PHPUnit\Framework\Attributes\Group;
 
 class ReplaceTest extends BaseTestCase
 {
@@ -47,6 +48,7 @@ class ReplaceTest extends BaseTestCase
         @Preg::replace($pattern, 'e', 'abcd', -1);
     }
 
+    #[Group('nophpunit10')]
     public function testBadPatternTriggersWarningByDefault(): void
     {
         $this->expectPcreWarning();
diff --git a/tests/PregTests/SplitTest.php b/tests/PregTests/SplitTest.php
index 5399ce0..714dc3c 100644
--- a/tests/PregTests/SplitTest.php
+++ b/tests/PregTests/SplitTest.php
@@ -13,6 +13,7 @@ namespace Composer\Pcre\PregTests;
 
 use Composer\Pcre\BaseTestCase;
 use Composer\Pcre\Preg;
+use PHPUnit\Framework\Attributes\Group;
 
 class SplitTest extends BaseTestCase
 {
@@ -39,6 +40,7 @@ class SplitTest extends BaseTestCase
         @Preg::split($pattern, 'a, b, c');
     }
 
+    #[Group('nophpunit10')]
     public function testBadPatternTriggersWarningByDefault(): void
     {
         $this->expectPcreWarning();
diff --git a/tests/PregTests/SplitWithOffsetsTest.php b/tests/PregTests/SplitWithOffsetsTest.php
index d747706..6a8ff9e 100644
--- a/tests/PregTests/SplitWithOffsetsTest.php
+++ b/tests/PregTests/SplitWithOffsetsTest.php
@@ -13,6 +13,7 @@ namespace Composer\Pcre\PregTests;
 
 use Composer\Pcre\BaseTestCase;
 use Composer\Pcre\Preg;
+use PHPUnit\Framework\Attributes\Group;
 
 class SplitWithOffsetsTest extends BaseTestCase
 {
@@ -39,6 +40,7 @@ class SplitWithOffsetsTest extends BaseTestCase
         @Preg::splitWithOffsets($pattern, 'a, b, c');
     }
 
+    #[Group('nophpunit10')]
     public function testBadPatternTriggersWarningByDefault(): void
     {
         $this->expectPcreWarning();
diff --git a/tests/RegexTests/IsMatchTest.php b/tests/RegexTests/IsMatchTest.php
index 1f16e09..8c0a3bc 100644
--- a/tests/RegexTests/IsMatchTest.php
+++ b/tests/RegexTests/IsMatchTest.php
@@ -13,6 +13,7 @@ namespace Composer\Pcre\RegexTests;
 
 use Composer\Pcre\BaseTestCase;
 use Composer\Pcre\Regex;
+use PHPUnit\Framework\Attributes\Group;
 
 class IsMatchTest extends BaseTestCase
 {
@@ -39,6 +40,7 @@ class IsMatchTest extends BaseTestCase
         @Regex::isMatch($pattern, 'abcdefghijklmnopqrstuvwxyz');
     }
 
+    #[Group('nophpunit10')]
     public function testBadPatternTriggersWarningByDefault(): void
     {
         $this->expectPcreWarning();
diff --git a/tests/RegexTests/MatchAllTest.php b/tests/RegexTests/MatchAllTest.php
index bfc1532..8cc2ef3 100644
--- a/tests/RegexTests/MatchAllTest.php
+++ b/tests/RegexTests/MatchAllTest.php
@@ -13,6 +13,7 @@ namespace Composer\Pcre\RegexTests;
 
 use Composer\Pcre\BaseTestCase;
 use Composer\Pcre\Regex;
+use PHPUnit\Framework\Attributes\Group;
 
 class MatchAllTest extends BaseTestCase
 {
@@ -44,6 +45,7 @@ class MatchAllTest extends BaseTestCase
         @Regex::matchAll($pattern, 'abcdefghijklmnopqrstuvwxyz');
     }
 
+    #[Group('nophpunit10')]
     public function testBadPatternTriggersWarningByDefault(): void
     {
         $this->expectPcreWarning();
diff --git a/tests/RegexTests/MatchTest.php b/tests/RegexTests/MatchTest.php
index 1dcdffe..075ab47 100644
--- a/tests/RegexTests/MatchTest.php
+++ b/tests/RegexTests/MatchTest.php
@@ -14,6 +14,7 @@ namespace Composer\Pcre\RegexTests;
 use Composer\Pcre\BaseTestCase;
 use Composer\Pcre\Regex;
 use Composer\Pcre\UnexpectedNullMatchException;
+use PHPUnit\Framework\Attributes\Group;
 
 class MatchTest extends BaseTestCase
 {
@@ -58,6 +59,7 @@ class MatchTest extends BaseTestCase
         @Regex::match($pattern, 'abcdefghijklmnopqrstuvwxyz');
     }
 
+    #[Group('nophpunit10')]
     public function testBadPatternTriggersWarningByDefault(): void
     {
         $this->expectPcreWarning();
diff --git a/tests/RegexTests/ReplaceCallbackArrayTest.php b/tests/RegexTests/ReplaceCallbackArrayTest.php
index 7632a15..fd92d46 100644
--- a/tests/RegexTests/ReplaceCallbackArrayTest.php
+++ b/tests/RegexTests/ReplaceCallbackArrayTest.php
@@ -14,6 +14,7 @@ namespace Composer\Pcre\RegexTests;
 use Composer\Pcre\BaseTestCase;
 use Composer\Pcre\Preg;
 use Composer\Pcre\Regex;
+use PHPUnit\Framework\Attributes\Group;
 
 /**
  * @requires PHP 7.0
@@ -58,6 +59,7 @@ class ReplaceCallbackArrayTest extends BaseTestCase
         }), 'abcd');
     }
 
+    #[Group('nophpunit10')]
     public function testBadPatternTriggersWarningByDefault(): void
     {
         $this->expectPcreWarning();
diff --git a/tests/RegexTests/ReplaceCallbackTest.php b/tests/RegexTests/ReplaceCallbackTest.php
index a93d515..85f6168 100644
--- a/tests/RegexTests/ReplaceCallbackTest.php
+++ b/tests/RegexTests/ReplaceCallbackTest.php
@@ -14,6 +14,7 @@ namespace Composer\Pcre\RegexTests;
 use Composer\Pcre\BaseTestCase;
 use Composer\Pcre\Preg;
 use Composer\Pcre\Regex;
+use PHPUnit\Framework\Attributes\Group;
 
 class ReplaceCallbackTest extends BaseTestCase
 {
@@ -55,6 +56,7 @@ class ReplaceCallbackTest extends BaseTestCase
         }, 'abcd');
     }
 
+    #[Group('nophpunit10')]
     public function testBadPatternTriggersWarningByDefault(): void
     {
         $this->expectPcreWarning();
diff --git a/tests/RegexTests/ReplaceTest.php b/tests/RegexTests/ReplaceTest.php
index 6493477..e5da7d4 100644
--- a/tests/RegexTests/ReplaceTest.php
+++ b/tests/RegexTests/ReplaceTest.php
@@ -14,6 +14,7 @@ namespace Composer\Pcre\RegexTests;
 use Composer\Pcre\BaseTestCase;
 use Composer\Pcre\Preg;
 use Composer\Pcre\Regex;
+use PHPUnit\Framework\Attributes\Group;
 
 class ReplaceTest extends BaseTestCase
 {
@@ -46,6 +47,7 @@ class ReplaceTest extends BaseTestCase
         @Regex::replace($pattern, 'e', 'abcd');
     }
 
+    #[Group('nophpunit10')]
     public function testBadPatternTriggersWarningByDefault(): void
     {
         $this->expectPcreWarning();
