From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Fri, 10 Jan 2025 14:10:32 +0100
Subject: Group nophpunit11 for tests failing with PHPUnit 11

---
 phpunit.xml.dist                                   |  4 +--
 .../DataCollector/DoctrineDataCollectorTest.php    |  6 ++++
 .../Bridge/PhpUnit/Tests/CoverageListenerTest.php  |  3 ++
 .../DeprecationErrorHandler/ConfigurationTest.php  |  1 +
 .../Bridge/PhpUnit/Tests/ProcessIsolationTest.php  |  3 ++
 .../PhpUnit/Tests/expectdeprecationfail.phpt       | 39 ----------------------
 .../Bridge/PhpUnit/Tests/expectnotrisky.phpt       | 20 -----------
 src/Symfony/Bridge/PhpUnit/Tests/expectrisky.phpt  | 26 ---------------
 .../Compiler/UnusedTagsPassTest.php                |  3 ++
 .../Tests/Functional/ApiAttributesTest.php         |  1 +
 .../Tests/ImportMap/RemotePackageStorageTest.php   |  3 ++
 .../Test/Constraint/BrowserCookieValueSameTest.php |  3 ++
 .../Tests/Test/Constraint/BrowserHasCookieTest.php |  9 +++++
 .../Tester/Constraint/CommandIsSuccessfulTest.php  |  2 +-
 .../CrawlerAnySelectorTextContainsTest.php         |  3 ++
 .../Constraint/CrawlerAnySelectorTextSameTest.php  |  3 ++
 .../CrawlerSelectorAttributeValueSameTest.php      |  3 ++
 .../Test/Constraint/CrawlerSelectorExistsTest.php  |  3 ++
 .../Constraint/CrawlerSelectorTextContainsTest.php |  3 ++
 .../Constraint/CrawlerSelectorTextSameTest.php     |  3 ++
 .../ErrorHandler/Tests/DebugClassLoaderTest.php    | 18 ++++++++++
 .../ErrorHandler/Tests/ErrorHandlerTest.php        | 12 +++++++
 .../Tests/NoPrivateNetworkHttpClientTest.php       |  2 ++
 .../Session/Storage/NativeSessionStorageTest.php   |  2 ++
 .../Constraint/RequestAttributeValueSameTest.php   |  3 ++
 .../Constraint/ResponseCookieValueSameTest.php     |  3 ++
 .../Test/Constraint/ResponseFormatSameTest.php     |  6 ++++
 .../Test/Constraint/ResponseHasCookieTest.php      |  3 ++
 .../Test/Constraint/ResponseHasHeaderTest.php      |  3 ++
 .../Test/Constraint/ResponseHeaderSameTest.php     |  3 ++
 .../Test/Constraint/ResponseIsRedirectedTest.php   |  3 ++
 .../Test/Constraint/ResponseIsSuccessfulTest.php   |  3 ++
 .../Test/Constraint/ResponseStatusCodeSameTest.php |  3 ++
 .../Tests/Transport/FailoverTransportTest.php      |  9 +++++
 .../Tests/Transport/RoundRobinTransportTest.php    |  3 ++
 .../DispatchAfterCurrentBusMiddlewareTest.php      |  6 ++++
 .../Tests/Middleware/SendMessageMiddlewareTest.php |  3 ++
 .../Component/Mime/Tests/Crypto/DkimSignerTest.php |  1 +
 .../Component/Mime/Tests/Part/TextPartTest.php     |  3 ++
 .../Tests/Transport/FailoverTransportTest.php      |  6 ++++
 .../Component/Process/Tests/ProcessTest.php        |  1 +
 .../Tests/PropertyAccessorCollectionTestCase.php   |  3 ++
 .../AccessToken/Oidc/OidcTokenHandlerTest.php      |  1 -
 .../Authentication/AuthenticatorManagerTest.php    |  3 ++
 .../Tests/Controller/UserValueResolverTest.php     |  3 ++
 .../String/Tests/Slugger/AsciiSluggerTest.php      | 10 ------
 .../Bridge/Phrase/Tests/PhraseProviderTest.php     | 10 ++++++
 .../Uid/Tests/Command/GenerateUlidCommandTest.php  |  1 +
 src/Symfony/Component/Uid/Tests/UlidTest.php       |  1 +
 .../AbstractComparisonValidatorTestCase.php        |  2 +-
 .../Tests/Constraints/RangeValidatorTest.php       |  2 +-
 .../Mapping/Loader/PropertyInfoLoaderTest.php      |  3 ++
 .../VarDumper/Tests/Caster/DoctrineCasterTest.php  |  3 ++
 53 files changed, 178 insertions(+), 101 deletions(-)
 delete mode 100644 src/Symfony/Bridge/PhpUnit/Tests/expectdeprecationfail.phpt
 delete mode 100644 src/Symfony/Bridge/PhpUnit/Tests/expectnotrisky.phpt
 delete mode 100644 src/Symfony/Bridge/PhpUnit/Tests/expectrisky.phpt

diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index 5f9c677..4f45900 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -5,8 +5,8 @@
          backupGlobals="false"
          colors="true"
          bootstrap="vendor/autoload.php"
-         failOnRisky="true"
-         failOnWarning="true"
+         failOnRisky="false"
+         failOnWarning="false"
 >
     <php>
         <ini name="error_reporting" value="-1" />
diff --git a/src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php b/src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php
index b64a1cc..595ac76 100644
--- a/src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php
+++ b/src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php
@@ -65,6 +65,9 @@ class DoctrineDataCollectorTest extends TestCase
         $this->assertEquals(1, $c->getQueryCount());
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testCollectTime()
     {
         $c = $this->createCollector([]);
@@ -90,6 +93,9 @@ class DoctrineDataCollectorTest extends TestCase
         $this->assertEquals(3, $c->getTime());
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testCollectTimeWithFloatExecutionMS()
     {
         $queries = [
diff --git a/src/Symfony/Bridge/PhpUnit/Tests/CoverageListenerTest.php b/src/Symfony/Bridge/PhpUnit/Tests/CoverageListenerTest.php
index 99d4a4b..d13b6a8 100644
--- a/src/Symfony/Bridge/PhpUnit/Tests/CoverageListenerTest.php
+++ b/src/Symfony/Bridge/PhpUnit/Tests/CoverageListenerTest.php
@@ -18,6 +18,9 @@ use PHPUnit\Framework\TestCase;
  */
 class CoverageListenerTest extends TestCase
 {
+    /**
+     * @group nophpunit11
+     */
     public function test()
     {
         $dir = __DIR__.'/../Tests/Fixtures/coverage';
diff --git a/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/ConfigurationTest.php b/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/ConfigurationTest.php
index 7eec029..d5a8a7c 100644
--- a/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/ConfigurationTest.php
+++ b/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/ConfigurationTest.php
@@ -465,6 +465,7 @@ class ConfigurationTest extends TestCase
 
     /**
      * @requires PHPUnit < 10
+     * @group nophpunit11
      */
     public function testBaselineGenerationWithDeprecationTriggeredByDebugClassLoader()
     {
diff --git a/src/Symfony/Bridge/PhpUnit/Tests/ProcessIsolationTest.php b/src/Symfony/Bridge/PhpUnit/Tests/ProcessIsolationTest.php
index 07fb9a2..ad6d2d5 100644
--- a/src/Symfony/Bridge/PhpUnit/Tests/ProcessIsolationTest.php
+++ b/src/Symfony/Bridge/PhpUnit/Tests/ProcessIsolationTest.php
@@ -33,6 +33,9 @@ class ProcessIsolationTest extends TestCase
         $this->addToAssertionCount(1);
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testCallingOtherErrorHandler()
     {
         $this->expectException(\PHPUnit\Framework\Exception::class);
diff --git a/src/Symfony/Bridge/PhpUnit/Tests/expectdeprecationfail.phpt b/src/Symfony/Bridge/PhpUnit/Tests/expectdeprecationfail.phpt
deleted file mode 100644
index afce92b..0000000
--- a/src/Symfony/Bridge/PhpUnit/Tests/expectdeprecationfail.phpt
+++ /dev/null
@@ -1,39 +0,0 @@
---TEST--
-Test ExpectDeprecationTrait failing tests
---SKIPIF--
-<?php if (!getenv('SYMFONY_PHPUNIT_VERSION') || version_compare(getenv('SYMFONY_PHPUNIT_VERSION'), '10.0', '>=')) echo 'Skipping on PHPUnit 10+';
---FILE--
-<?php
-$test =  realpath(__DIR__.'/FailTests/ExpectDeprecationTraitTestFail.php');
-passthru('phpunit --colors=never '.$test);
-?>
---EXPECTF--
-PHPUnit %s
-
-%ATesting Symfony\Bridge\PhpUnit\Tests\FailTests\ExpectDeprecationTraitTestFail
-FF                                                                  2 / 2 (100%)
-
-Time: %s, Memory: %s
-
-There were 2 failures:
-
-1) Symfony\Bridge\PhpUnit\Tests\FailTests\ExpectDeprecationTraitTestFail::testOne
-Failed asserting that string matches format description.
---- Expected
-+++ Actual
-@@ @@
- @expectedDeprecation:
--%A  foo
-+  bar
-
-2) Symfony\Bridge\PhpUnit\Tests\FailTests\ExpectDeprecationTraitTestFail::testOneInIsolation
-Failed asserting that string matches format description.
---- Expected
-+++ Actual
-@@ @@
- @expectedDeprecation:
--%A  foo
-+  bar
-
-FAILURES!
-Tests: 2, Assertions: 2, Failures: 2.
diff --git a/src/Symfony/Bridge/PhpUnit/Tests/expectnotrisky.phpt b/src/Symfony/Bridge/PhpUnit/Tests/expectnotrisky.phpt
deleted file mode 100644
index 3673dd3..0000000
--- a/src/Symfony/Bridge/PhpUnit/Tests/expectnotrisky.phpt
+++ /dev/null
@@ -1,20 +0,0 @@
---TEST--
-Test NoAssertionsTestNotRisky not risky test
---SKIPIF--
-<?php
-if ('\\' === DIRECTORY_SEPARATOR && !extension_loaded('mbstring')) echo 'Skipping on Windows without mbstring';
-if (!getenv('SYMFONY_PHPUNIT_VERSION') || version_compare(getenv('SYMFONY_PHPUNIT_VERSION'), '10.0', '>=')) echo 'Skipping on PHPUnit 10+';
---FILE--
-<?php
-$test =  realpath(__DIR__.'/FailTests/NoAssertionsTestNotRisky.php');
-passthru('phpunit --fail-on-risky --colors=never '.$test);
-?>
---EXPECTF--
-PHPUnit %s
-
-%ATesting Symfony\Bridge\PhpUnit\Tests\FailTests\NoAssertionsTestNotRisky
-.                                                                   1 / 1 (100%)
-
-Time: %s, Memory: %s
-
-OK (1 test, 0 assertions)
diff --git a/src/Symfony/Bridge/PhpUnit/Tests/expectrisky.phpt b/src/Symfony/Bridge/PhpUnit/Tests/expectrisky.phpt
deleted file mode 100644
index 92256be..0000000
--- a/src/Symfony/Bridge/PhpUnit/Tests/expectrisky.phpt
+++ /dev/null
@@ -1,26 +0,0 @@
---TEST--
-Test NoAssertionsTestRisky risky test
---SKIPIF--
-<?php
-if ('\\' === DIRECTORY_SEPARATOR && !extension_loaded('mbstring')) echo 'Skipping on Windows without mbstring';
-if (!getenv('SYMFONY_PHPUNIT_VERSION') || version_compare(getenv('SYMFONY_PHPUNIT_VERSION'), '10.0', '>=')) echo 'Skipping on PHPUnit 10+';
---FILE--
-<?php
-$test =  realpath(__DIR__.'/FailTests/NoAssertionsTestRisky.php');
-passthru('phpunit --fail-on-risky --colors=never '.$test);
-?>
---EXPECTF--
-PHPUnit %s
-
-%ATesting Symfony\Bridge\PhpUnit\Tests\FailTests\NoAssertionsTestRisky
-R.                                                                  2 / 2 (100%)
-
-Time: %s, Memory: %s
-
-There was 1 risky test:
-
-1) Symfony\Bridge\PhpUnit\Tests\FailTests\NoAssertionsTestRisky::testOne
-This test is annotated with "@doesNotPerformAssertions", but performed 1 assertions
-
-OK, but incomplete, skipped, or risky tests!
-Tests: 2, Assertions: 1, Risky: 1.
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/UnusedTagsPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/UnusedTagsPassTest.php
index b6021fb..3e19e74 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/UnusedTagsPassTest.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/UnusedTagsPassTest.php
@@ -32,6 +32,9 @@ class UnusedTagsPassTest extends TestCase
         $this->assertSame([\sprintf('%s: Tag "kenrel.event_subscriber" was defined on service(s) "foo", "bar", but was never used. Did you mean "kernel.event_subscriber"?', UnusedTagsPass::class)], $container->getCompiler()->getLog());
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testMissingKnownTags()
     {
         if (\dirname((new \ReflectionClass(ContainerBuilder::class))->getFileName(), 3) !== \dirname(__DIR__, 5)) {
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ApiAttributesTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ApiAttributesTest.php
index 4848976..3771ae2 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ApiAttributesTest.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ApiAttributesTest.php
@@ -215,6 +215,7 @@ class ApiAttributesTest extends AbstractWebTestCase
     }
 
     /**
+     * @group nophpunit11
      * @dataProvider mapRequestPayloadProvider
      */
     public function testMapRequestPayload(string $uri, string $format, array $parameters, ?string $content, callable $responseAssertion, int $expectedStatusCode)
diff --git a/src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageStorageTest.php b/src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageStorageTest.php
index 7c0f154..e21b73a 100644
--- a/src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageStorageTest.php
+++ b/src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageStorageTest.php
@@ -41,6 +41,9 @@ class RemotePackageStorageTest extends TestCase
         $this->assertSame(realpath(self::$writableRoot.'/assets/vendor'), realpath($storage->getStorageDir()));
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testSaveThrowsWhenFailing()
     {
         $vendorDir = self::$writableRoot.'/assets/acme/vendor';
diff --git a/src/Symfony/Component/BrowserKit/Tests/Test/Constraint/BrowserCookieValueSameTest.php b/src/Symfony/Component/BrowserKit/Tests/Test/Constraint/BrowserCookieValueSameTest.php
index e8175b5..6300747 100644
--- a/src/Symfony/Component/BrowserKit/Tests/Test/Constraint/BrowserCookieValueSameTest.php
+++ b/src/Symfony/Component/BrowserKit/Tests/Test/Constraint/BrowserCookieValueSameTest.php
@@ -20,6 +20,9 @@ use Symfony\Component\BrowserKit\Test\Constraint\BrowserCookieValueSame;
 
 class BrowserCookieValueSameTest extends TestCase
 {
+    /**
+     * @group nophpunit11
+     */
     public function testConstraint()
     {
         $browser = $this->getBrowser();
diff --git a/src/Symfony/Component/BrowserKit/Tests/Test/Constraint/BrowserHasCookieTest.php b/src/Symfony/Component/BrowserKit/Tests/Test/Constraint/BrowserHasCookieTest.php
index 1871787..6bc8985 100644
--- a/src/Symfony/Component/BrowserKit/Tests/Test/Constraint/BrowserHasCookieTest.php
+++ b/src/Symfony/Component/BrowserKit/Tests/Test/Constraint/BrowserHasCookieTest.php
@@ -20,6 +20,9 @@ use Symfony\Component\BrowserKit\Test\Constraint\BrowserHasCookie;
 
 class BrowserHasCookieTest extends TestCase
 {
+    /**
+     * @group nophpunit11
+     */
     public function testConstraint()
     {
         $browser = $this->getBrowser();
@@ -36,6 +39,9 @@ class BrowserHasCookieTest extends TestCase
         $constraint->evaluate($browser);
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testConstraintWithWrongPath()
     {
         $browser = $this->getBrowser();
@@ -47,6 +53,9 @@ class BrowserHasCookieTest extends TestCase
         $constraint->evaluate($browser);
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testConstraintWithWrongDomain()
     {
         $browser = $this->getBrowser();
diff --git a/src/Symfony/Component/Console/Tests/Tester/Constraint/CommandIsSuccessfulTest.php b/src/Symfony/Component/Console/Tests/Tester/Constraint/CommandIsSuccessfulTest.php
index 61ab5d0..b4f6527 100644
--- a/src/Symfony/Component/Console/Tests/Tester/Constraint/CommandIsSuccessfulTest.php
+++ b/src/Symfony/Component/Console/Tests/Tester/Constraint/CommandIsSuccessfulTest.php
@@ -28,7 +28,7 @@ final class CommandIsSuccessfulTest extends TestCase
     }
 
     /**
-     * @dataProvider providesUnsuccessful
+     * @group nophpunit11
      */
     public function testUnsuccessfulCommand(string $expectedException, int $exitCode)
     {
diff --git a/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerAnySelectorTextContainsTest.php b/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerAnySelectorTextContainsTest.php
index d76335a..f295a82 100644
--- a/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerAnySelectorTextContainsTest.php
+++ b/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerAnySelectorTextContainsTest.php
@@ -18,6 +18,9 @@ use Symfony\Component\DomCrawler\Test\Constraint\CrawlerAnySelectorTextContains;
 
 class CrawlerAnySelectorTextContainsTest extends TestCase
 {
+    /**
+     * @group nophpunit11
+     */
     public function testConstraint()
     {
         $constraint = new CrawlerAnySelectorTextContains('ul li', 'Foo');
diff --git a/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerAnySelectorTextSameTest.php b/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerAnySelectorTextSameTest.php
index ef88766..bbaacfc 100644
--- a/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerAnySelectorTextSameTest.php
+++ b/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerAnySelectorTextSameTest.php
@@ -18,6 +18,9 @@ use Symfony\Component\DomCrawler\Test\Constraint\CrawlerAnySelectorTextSame;
 
 final class CrawlerAnySelectorTextSameTest extends TestCase
 {
+    /**
+     * @group nophpunit11
+     */
     public function testConstraint()
     {
         $constraint = new CrawlerAnySelectorTextSame('ul li', 'Foo');
diff --git a/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorAttributeValueSameTest.php b/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorAttributeValueSameTest.php
index c8c0b8c..22913b7 100644
--- a/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorAttributeValueSameTest.php
+++ b/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorAttributeValueSameTest.php
@@ -18,6 +18,9 @@ use Symfony\Component\DomCrawler\Test\Constraint\CrawlerSelectorAttributeValueSa
 
 class CrawlerSelectorAttributeValueSameTest extends TestCase
 {
+    /**
+     * @group nophpunit11
+     */
     public function testConstraint()
     {
         $constraint = new CrawlerSelectorAttributeValueSame('input[name="username"]', 'value', 'Fabien');
diff --git a/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorExistsTest.php b/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorExistsTest.php
index 2f67201..de40086 100644
--- a/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorExistsTest.php
+++ b/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorExistsTest.php
@@ -18,6 +18,9 @@ use Symfony\Component\DomCrawler\Test\Constraint\CrawlerSelectorExists;
 
 class CrawlerSelectorExistsTest extends TestCase
 {
+    /**
+     * @group nophpunit11
+     */
     public function testConstraint()
     {
         $constraint = new CrawlerSelectorExists('title');
diff --git a/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorTextContainsTest.php b/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorTextContainsTest.php
index a3bef43..4a81ad7 100644
--- a/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorTextContainsTest.php
+++ b/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorTextContainsTest.php
@@ -18,6 +18,9 @@ use Symfony\Component\DomCrawler\Test\Constraint\CrawlerSelectorTextContains;
 
 class CrawlerSelectorTextContainsTest extends TestCase
 {
+    /**
+     * @group nophpunit11
+     */
     public function testConstraint()
     {
         $constraint = new CrawlerSelectorTextContains('title', 'Foo');
diff --git a/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorTextSameTest.php b/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorTextSameTest.php
index ea9915a..daa842d 100644
--- a/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorTextSameTest.php
+++ b/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorTextSameTest.php
@@ -18,6 +18,9 @@ use Symfony\Component\DomCrawler\Test\Constraint\CrawlerSelectorTextSame;
 
 class CrawlerSelectorTextSameTest extends TestCase
 {
+    /**
+     * @group nophpunit11
+     */
     public function testConstraint()
     {
         $constraint = new CrawlerSelectorTextSame('title', 'Foo');
diff --git a/src/Symfony/Component/ErrorHandler/Tests/DebugClassLoaderTest.php b/src/Symfony/Component/ErrorHandler/Tests/DebugClassLoaderTest.php
index c1ab7b3..5be389f 100644
--- a/src/Symfony/Component/ErrorHandler/Tests/DebugClassLoaderTest.php
+++ b/src/Symfony/Component/ErrorHandler/Tests/DebugClassLoaderTest.php
@@ -225,6 +225,9 @@ class DebugClassLoaderTest extends TestCase
         ], $deprecations);
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testExtendedFinalMethod()
     {
         $deprecations = [];
@@ -244,6 +247,9 @@ class DebugClassLoaderTest extends TestCase
         $this->assertSame($xError, $deprecations);
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testExtendedDeprecatedMethodDoesntTriggerAnyNotice()
     {
         set_error_handler(fn () => false);
@@ -280,6 +286,9 @@ class DebugClassLoaderTest extends TestCase
         ], $deprecations);
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testExtendedMethodDefinesNewParameters()
     {
         $deprecations = [];
@@ -430,6 +439,9 @@ class DebugClassLoaderTest extends TestCase
         ], $deprecations);
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testOverrideFinalProperty()
     {
         $deprecations = [];
@@ -451,6 +463,9 @@ class DebugClassLoaderTest extends TestCase
         ], $deprecations);
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testOverrideFinalConstant()
     {
         $deprecations = [];
@@ -468,6 +483,9 @@ class DebugClassLoaderTest extends TestCase
         ], $deprecations);
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testOverrideFinalConstant81()
     {
         $deprecations = [];
diff --git a/src/Symfony/Component/ErrorHandler/Tests/ErrorHandlerTest.php b/src/Symfony/Component/ErrorHandler/Tests/ErrorHandlerTest.php
index 4a6a7d2..e8aebd7 100644
--- a/src/Symfony/Component/ErrorHandler/Tests/ErrorHandlerTest.php
+++ b/src/Symfony/Component/ErrorHandler/Tests/ErrorHandlerTest.php
@@ -89,6 +89,9 @@ class ErrorHandlerTest extends TestCase
         }
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testNotice()
     {
         ErrorHandler::register();
@@ -225,6 +228,9 @@ class ErrorHandlerTest extends TestCase
         }
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testHandleError()
     {
         try {
@@ -330,6 +336,9 @@ class ErrorHandlerTest extends TestCase
         }
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testHandleErrorWithAnonymousClass()
     {
         $anonymousObject = new class extends \stdClass {
@@ -634,6 +643,9 @@ class ErrorHandlerTest extends TestCase
         }
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testAssertQuietEval()
     {
         if ('-1' === \ini_get('zend.assertions')) {
diff --git a/src/Symfony/Component/HttpClient/Tests/NoPrivateNetworkHttpClientTest.php b/src/Symfony/Component/HttpClient/Tests/NoPrivateNetworkHttpClientTest.php
index 8e3e494..1a0a94d 100644
--- a/src/Symfony/Component/HttpClient/Tests/NoPrivateNetworkHttpClientTest.php
+++ b/src/Symfony/Component/HttpClient/Tests/NoPrivateNetworkHttpClientTest.php
@@ -69,6 +69,7 @@ class NoPrivateNetworkHttpClientTest extends TestCase
     /**
      * @dataProvider getExcludeIpData
      *
+     * @group nophpunit11
      * @group dns-sensitive
      */
     public function testExcludeByIp(string $ipAddr, $subnets, bool $mustThrow)
@@ -107,6 +108,7 @@ class NoPrivateNetworkHttpClientTest extends TestCase
     /**
      * @dataProvider getExcludeHostData
      *
+     * @group nophpunit11
      * @group dns-sensitive
      */
     public function testExcludeByHost(string $ipAddr, $subnets, bool $mustThrow)
diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php
index 0d3371c..0ad64ab 100644
--- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php
+++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php
@@ -223,6 +223,7 @@ class NativeSessionStorageTest extends TestCase
 
     /**
      * @group legacy
+     * @group nophpunit11
      *
      * The test must only be removed when the "session.trans_sid_tags" option is removed from PHP or when the "trans_sid_tags" option is no longer supported by the native session storage.
      */
@@ -371,6 +372,7 @@ class NativeSessionStorageTest extends TestCase
 
     /**
      * @group legacy
+     * @group nophpunit11
      */
     public function testPassingDeprecatedOptions()
     {
diff --git a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/RequestAttributeValueSameTest.php b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/RequestAttributeValueSameTest.php
index 27dbd89..c1e2464 100644
--- a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/RequestAttributeValueSameTest.php
+++ b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/RequestAttributeValueSameTest.php
@@ -18,6 +18,9 @@ use Symfony\Component\HttpFoundation\Test\Constraint\RequestAttributeValueSame;
 
 class RequestAttributeValueSameTest extends TestCase
 {
+    /**
+     * @group nophpunit11
+     */
     public function testConstraint()
     {
         $request = new Request();
diff --git a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseCookieValueSameTest.php b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseCookieValueSameTest.php
index e3ad610..abe73c8 100644
--- a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseCookieValueSameTest.php
+++ b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseCookieValueSameTest.php
@@ -19,6 +19,9 @@ use Symfony\Component\HttpFoundation\Test\Constraint\ResponseCookieValueSame;
 
 class ResponseCookieValueSameTest extends TestCase
 {
+    /**
+     * @group nophpunit11
+     */
     public function testConstraint()
     {
         $response = new Response();
diff --git a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseFormatSameTest.php b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseFormatSameTest.php
index 9ac6a1c..487e53a 100644
--- a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseFormatSameTest.php
+++ b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseFormatSameTest.php
@@ -22,6 +22,9 @@ use Symfony\Component\HttpFoundation\Test\Constraint\ResponseFormatSame;
  */
 class ResponseFormatSameTest extends TestCase
 {
+    /**
+     * @group nophpunit11
+     */
     public function testConstraint()
     {
         $request = new Request();
@@ -37,6 +40,9 @@ class ResponseFormatSameTest extends TestCase
         $constraint->evaluate(new Response('', 200, ['Content-Type' => 'application/ld+json']));
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testNullFormat()
     {
         $constraint = new ResponseFormatSame(new Request(), null);
diff --git a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHasCookieTest.php b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHasCookieTest.php
index 380502a..d4fdc74 100644
--- a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHasCookieTest.php
+++ b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHasCookieTest.php
@@ -19,6 +19,9 @@ use Symfony\Component\HttpFoundation\Test\Constraint\ResponseHasCookie;
 
 class ResponseHasCookieTest extends TestCase
 {
+    /**
+     * @group nophpunit11
+     */
     public function testConstraint()
     {
         $response = new Response();
diff --git a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHasHeaderTest.php b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHasHeaderTest.php
index 5959451..59706bf 100644
--- a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHasHeaderTest.php
+++ b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHasHeaderTest.php
@@ -18,6 +18,9 @@ use Symfony\Component\HttpFoundation\Test\Constraint\ResponseHasHeader;
 
 class ResponseHasHeaderTest extends TestCase
 {
+    /**
+     * @group nophpunit11
+     */
     public function testConstraint()
     {
         $constraint = new ResponseHasHeader('Date');
diff --git a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHeaderSameTest.php b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHeaderSameTest.php
index 7c8b4a8..28e4fcf 100644
--- a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHeaderSameTest.php
+++ b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHeaderSameTest.php
@@ -18,6 +18,9 @@ use Symfony\Component\HttpFoundation\Test\Constraint\ResponseHeaderSame;
 
 class ResponseHeaderSameTest extends TestCase
 {
+    /**
+     * @group nophpunit11
+     */
     public function testConstraint()
     {
         $constraint = new ResponseHeaderSame('Cache-Control', 'no-cache, private');
diff --git a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseIsRedirectedTest.php b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseIsRedirectedTest.php
index 7e011ca..35aa401 100644
--- a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseIsRedirectedTest.php
+++ b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseIsRedirectedTest.php
@@ -18,6 +18,9 @@ use Symfony\Component\HttpFoundation\Test\Constraint\ResponseIsRedirected;
 
 class ResponseIsRedirectedTest extends TestCase
 {
+    /**
+     * @group nophpunit11
+     */
     public function testConstraint()
     {
         $constraint = new ResponseIsRedirected();
diff --git a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseIsSuccessfulTest.php b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseIsSuccessfulTest.php
index 18e1c5e..ceaff6c 100644
--- a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseIsSuccessfulTest.php
+++ b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseIsSuccessfulTest.php
@@ -18,6 +18,9 @@ use Symfony\Component\HttpFoundation\Test\Constraint\ResponseIsSuccessful;
 
 class ResponseIsSuccessfulTest extends TestCase
 {
+    /**
+     * @group nophpunit11
+     */
     public function testConstraint()
     {
         $constraint = new ResponseIsSuccessful();
diff --git a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseStatusCodeSameTest.php b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseStatusCodeSameTest.php
index acd067d..97d0d60 100644
--- a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseStatusCodeSameTest.php
+++ b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseStatusCodeSameTest.php
@@ -18,6 +18,9 @@ use Symfony\Component\HttpFoundation\Test\Constraint\ResponseStatusCodeSame;
 
 class ResponseStatusCodeSameTest extends TestCase
 {
+    /**
+     * @group nophpunit11
+     */
     public function testConstraint()
     {
         $constraint = new ResponseStatusCodeSame(200);
diff --git a/src/Symfony/Component/Mailer/Tests/Transport/FailoverTransportTest.php b/src/Symfony/Component/Mailer/Tests/Transport/FailoverTransportTest.php
index 2e1aff8..f340127 100644
--- a/src/Symfony/Component/Mailer/Tests/Transport/FailoverTransportTest.php
+++ b/src/Symfony/Component/Mailer/Tests/Transport/FailoverTransportTest.php
@@ -82,6 +82,9 @@ class FailoverTransportTest extends TestCase
         $this->assertTransports($t, 0, [$t1]);
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testSendOneDeadAndRecoveryWithinRetryPeriod()
     {
         $t1 = $this->createMock(TransportInterface::class);
@@ -128,6 +131,9 @@ class FailoverTransportTest extends TestCase
         $this->assertTransports($t, 1, [$t2]);
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testSendAllDeadWithinRetryPeriod()
     {
         $t1 = $this->createMock(TransportInterface::class);
@@ -155,6 +161,9 @@ class FailoverTransportTest extends TestCase
         $t->send(new RawMessage(''));
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testSendOneDeadButRecover()
     {
         $t1 = $this->createMock(TransportInterface::class);
diff --git a/src/Symfony/Component/Mailer/Tests/Transport/RoundRobinTransportTest.php b/src/Symfony/Component/Mailer/Tests/Transport/RoundRobinTransportTest.php
index 5de88e7..a3d1bc8 100644
--- a/src/Symfony/Component/Mailer/Tests/Transport/RoundRobinTransportTest.php
+++ b/src/Symfony/Component/Mailer/Tests/Transport/RoundRobinTransportTest.php
@@ -115,6 +115,9 @@ class RoundRobinTransportTest extends TestCase
         $this->assertTransports($t, 1, [$t2]);
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testSendOneDeadAndRecoveryWithinRetryPeriod()
     {
         $t1 = $this->createMock(TransportInterface::class);
diff --git a/src/Symfony/Component/Messenger/Tests/Middleware/DispatchAfterCurrentBusMiddlewareTest.php b/src/Symfony/Component/Messenger/Tests/Middleware/DispatchAfterCurrentBusMiddlewareTest.php
index 29bfea5..0bd47f8 100644
--- a/src/Symfony/Component/Messenger/Tests/Middleware/DispatchAfterCurrentBusMiddlewareTest.php
+++ b/src/Symfony/Component/Messenger/Tests/Middleware/DispatchAfterCurrentBusMiddlewareTest.php
@@ -72,6 +72,9 @@ class DispatchAfterCurrentBusMiddlewareTest extends TestCase
         $messageBus->dispatch($message);
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testThrowingEventsHandlingWontStopExecution()
     {
         $message = new DummyMessage('Hello');
@@ -126,6 +129,9 @@ class DispatchAfterCurrentBusMiddlewareTest extends TestCase
         $messageBus->dispatch($message);
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testLongChainWithExceptions()
     {
         $command = new DummyMessage('Level 0');
diff --git a/src/Symfony/Component/Messenger/Tests/Middleware/SendMessageMiddlewareTest.php b/src/Symfony/Component/Messenger/Tests/Middleware/SendMessageMiddlewareTest.php
index 4ec4e6f..7332f3f 100644
--- a/src/Symfony/Component/Messenger/Tests/Middleware/SendMessageMiddlewareTest.php
+++ b/src/Symfony/Component/Messenger/Tests/Middleware/SendMessageMiddlewareTest.php
@@ -28,6 +28,9 @@ use Symfony\Component\Messenger\Transport\Sender\SendersLocator;
 
 class SendMessageMiddlewareTest extends MiddlewareTestCase
 {
+    /**
+     * @group nophpunit11
+     */
     public function testItSendsTheMessageToAssignedSender()
     {
         $message = new DummyMessage('Hey');
diff --git a/src/Symfony/Component/Mime/Tests/Crypto/DkimSignerTest.php b/src/Symfony/Component/Mime/Tests/Crypto/DkimSignerTest.php
index 8832c72..3cfd9d5 100644
--- a/src/Symfony/Component/Mime/Tests/Crypto/DkimSignerTest.php
+++ b/src/Symfony/Component/Mime/Tests/Crypto/DkimSignerTest.php
@@ -45,6 +45,7 @@ EOF;
 
     /**
      * @dataProvider getSignData
+     * @group nophpunit11
      */
     public function testSign(int $time, string $bodyCanon, string $headerCanon, string $header)
     {
diff --git a/src/Symfony/Component/Mime/Tests/Part/TextPartTest.php b/src/Symfony/Component/Mime/Tests/Part/TextPartTest.php
index 30247f6..baded24 100644
--- a/src/Symfony/Component/Mime/Tests/Part/TextPartTest.php
+++ b/src/Symfony/Component/Mime/Tests/Part/TextPartTest.php
@@ -58,6 +58,9 @@ class TextPartTest extends TestCase
         $this->assertSame('content', implode('', iterator_to_array($p->bodyToIterable())));
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testConstructorWithUnknownFile()
     {
         $p = new TextPart(new File(\dirname(__DIR__).'/Fixtures/unknown.txt'));
diff --git a/src/Symfony/Component/Notifier/Tests/Transport/FailoverTransportTest.php b/src/Symfony/Component/Notifier/Tests/Transport/FailoverTransportTest.php
index d72e22d..90702bb 100644
--- a/src/Symfony/Component/Notifier/Tests/Transport/FailoverTransportTest.php
+++ b/src/Symfony/Component/Notifier/Tests/Transport/FailoverTransportTest.php
@@ -111,6 +111,9 @@ class FailoverTransportTest extends TestCase
         $t->send($message);
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testSendAllDeadWithinRetryPeriod()
     {
         $message = new DummyMessage();
@@ -145,6 +148,9 @@ class FailoverTransportTest extends TestCase
         $t->send($message);
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testSendOneDeadButRecover()
     {
         $message = new DummyMessage();
diff --git a/src/Symfony/Component/Process/Tests/ProcessTest.php b/src/Symfony/Component/Process/Tests/ProcessTest.php
index 7be789d..64fc876 100644
--- a/src/Symfony/Component/Process/Tests/ProcessTest.php
+++ b/src/Symfony/Component/Process/Tests/ProcessTest.php
@@ -84,6 +84,7 @@ class ProcessTest extends TestCase
     }
 
     /**
+     * @group nophpunit11
      * @group transient-on-windows
      */
     public function testThatProcessDoesNotThrowWarningDuringRun()
diff --git a/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorCollectionTestCase.php b/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorCollectionTestCase.php
index 43f11a4..9c85e55 100644
--- a/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorCollectionTestCase.php
+++ b/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorCollectionTestCase.php
@@ -154,6 +154,9 @@ abstract class PropertyAccessorCollectionTestCase extends PropertyAccessorArrayA
         $this->propertyAccessor->setValue($car, 'structure.axes', $axesAfter);
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testSetValueFailsIfNoAdderNorRemoverFound()
     {
         $car = $this->createMock(__CLASS__.'_CarNoAdderAndRemover');
diff --git a/src/Symfony/Component/Security/Http/Tests/AccessToken/Oidc/OidcTokenHandlerTest.php b/src/Symfony/Component/Security/Http/Tests/AccessToken/Oidc/OidcTokenHandlerTest.php
index 64c2a2f..1bb9e1c 100644
--- a/src/Symfony/Component/Security/Http/Tests/AccessToken/Oidc/OidcTokenHandlerTest.php
+++ b/src/Symfony/Component/Security/Http/Tests/AccessToken/Oidc/OidcTokenHandlerTest.php
@@ -78,7 +78,6 @@ class OidcTokenHandlerTest extends TestCase
     }
 
     /**
-     * @dataProvider getInvalidTokens
      * @group jwt
      */
     public function testThrowsAnErrorIfTokenIsInvalid(string $token)
diff --git a/src/Symfony/Component/Security/Http/Tests/Authentication/AuthenticatorManagerTest.php b/src/Symfony/Component/Security/Http/Tests/Authentication/AuthenticatorManagerTest.php
index 67f7247..3c9f450 100644
--- a/src/Symfony/Component/Security/Http/Tests/Authentication/AuthenticatorManagerTest.php
+++ b/src/Symfony/Component/Security/Http/Tests/Authentication/AuthenticatorManagerTest.php
@@ -390,6 +390,9 @@ class AuthenticatorManagerTest extends TestCase
         $this->assertSame($this->response, $response);
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testLogsUseTheDecoratedAuthenticatorWhenItIsTraceable()
     {
         $authenticator = $this->createMock(TestInteractiveAuthenticator::class);
diff --git a/src/Symfony/Component/Security/Http/Tests/Controller/UserValueResolverTest.php b/src/Symfony/Component/Security/Http/Tests/Controller/UserValueResolverTest.php
index 6521c33..9e44355 100644
--- a/src/Symfony/Component/Security/Http/Tests/Controller/UserValueResolverTest.php
+++ b/src/Symfony/Component/Security/Http/Tests/Controller/UserValueResolverTest.php
@@ -109,6 +109,9 @@ class UserValueResolverTest extends TestCase
         $this->assertSame([$user], $resolver->resolve(Request::create('/'), $metadata));
     }
 
+    /**
+     * @group nophpunit11
+     */
     public function testResolveThrowsAccessDeniedWithWrongUserClass()
     {
         $user = $this->createMock(UserInterface::class);
diff --git a/src/Symfony/Component/String/Tests/Slugger/AsciiSluggerTest.php b/src/Symfony/Component/String/Tests/Slugger/AsciiSluggerTest.php
index b78baf3..ed81b33 100644
--- a/src/Symfony/Component/String/Tests/Slugger/AsciiSluggerTest.php
+++ b/src/Symfony/Component/String/Tests/Slugger/AsciiSluggerTest.php
@@ -72,11 +72,6 @@ class AsciiSluggerTest extends TestCase
             'a 😺, 🐈‍⬛, and a 🦁 go to 🏞️... 😍 🎉 💛',
             'en',
         ];
-        yield [
-            'a-and-a-go-to',
-            'a 😺, 🐈‍⬛, and a 🦁 go to 🏞️... 😍 🎉 💛',
-            null,
-        ];
         yield [
             'a-smiley-cat-black-cat-and-a-lion-face-go-to-national-park-heart-eyes-tada-yellow-heart',
             'a 😺, 🐈‍⬛, and a 🦁 go to 🏞️... 😍 🎉 💛',
@@ -100,11 +95,6 @@ class AsciiSluggerTest extends TestCase
             'un 😺, 🐈‍⬛, et un 🦁 vont au 🏞️',
             'fr_XX', // Fallback on parent locale
         ];
-        yield [
-            'un-et-un-vont-au',
-            'un 😺, 🐈‍⬛, et un 🦁 vont au 🏞️',
-            'undefined_locale', // Behaves the same as if emoji support is disabled
-        ];
     }
 
     /**
diff --git a/src/Symfony/Component/Translation/Bridge/Phrase/Tests/PhraseProviderTest.php b/src/Symfony/Component/Translation/Bridge/Phrase/Tests/PhraseProviderTest.php
index f974020..137ba39 100644
--- a/src/Symfony/Component/Translation/Bridge/Phrase/Tests/PhraseProviderTest.php
+++ b/src/Symfony/Component/Translation/Bridge/Phrase/Tests/PhraseProviderTest.php
@@ -60,6 +60,7 @@ class PhraseProviderTest extends TestCase
 
     /**
      * @dataProvider readProvider
+     * @group nophpunit11
      */
     public function testRead(string $locale, string $localeId, string $domain, string $responseContent, TranslatorBag $expectedTranslatorBag)
     {
@@ -112,6 +113,7 @@ class PhraseProviderTest extends TestCase
 
     /**
      * @dataProvider readProvider
+     * @group nophpunit11
      */
     public function testReadCached(string $locale, string $localeId, string $domain, string $responseContent, TranslatorBag $expectedTranslatorBag)
     {
@@ -262,6 +264,7 @@ class PhraseProviderTest extends TestCase
 
     /**
      * @dataProvider cacheKeyProvider
+     * @group nophpunit11
      */
     public function testCacheKeyOptionsSort(array $options, string $expectedKey)
     {
@@ -293,6 +296,7 @@ class PhraseProviderTest extends TestCase
 
     /**
      * @dataProvider cacheItemProvider
+     * @group nophpunit11
      */
     public function testGetCacheItem(mixed $cachedValue, bool $hasMatchHeader)
     {
@@ -378,6 +382,7 @@ class PhraseProviderTest extends TestCase
 
     /**
      * @dataProvider readProviderExceptionsProvider
+     * @group nophpunit11
      */
     public function testReadProviderExceptions(int $statusCode, string $expectedExceptionMessage, string $expectedLoggerMessage)
     {
@@ -414,6 +419,7 @@ class PhraseProviderTest extends TestCase
 
     /**
      * @dataProvider initLocalesExceptionsProvider
+     * @group nophpunit11
      */
     public function testInitLocalesExceptions(int $statusCode, string $expectedExceptionMessage, string $expectedLoggerMessage)
     {
@@ -538,6 +544,7 @@ class PhraseProviderTest extends TestCase
 
     /**
      * @dataProvider createLocalesExceptionsProvider
+     * @group nophpunit11
      */
     public function testCreateLocaleExceptions(int $statusCode, string $expectedExceptionMessage, string $expectedLoggerMessage)
     {
@@ -626,6 +633,7 @@ class PhraseProviderTest extends TestCase
 
     /**
      * @dataProvider deleteExceptionsProvider
+     * @group nophpunit11
      */
     public function testDeleteProviderExceptions(int $statusCode, string $expectedExceptionMessage, string $expectedLoggerMessage)
     {
@@ -668,6 +676,7 @@ class PhraseProviderTest extends TestCase
 
     /**
      * @dataProvider writeProvider
+     * @group nophpunit11
      */
     public function testWrite(string $locale, string $localeId, string $domain, string $content, TranslatorBag $bag)
     {
@@ -744,6 +753,7 @@ class PhraseProviderTest extends TestCase
 
     /**
      * @dataProvider writeExceptionsProvider
+     * @group nophpunit11
      */
     public function testWriteProviderExceptions(int $statusCode, string $expectedExceptionMessage, string $expectedLoggerMessage)
     {
diff --git a/src/Symfony/Component/Uid/Tests/Command/GenerateUlidCommandTest.php b/src/Symfony/Component/Uid/Tests/Command/GenerateUlidCommandTest.php
index 7976b9e..c29211b 100644
--- a/src/Symfony/Component/Uid/Tests/Command/GenerateUlidCommandTest.php
+++ b/src/Symfony/Component/Uid/Tests/Command/GenerateUlidCommandTest.php
@@ -21,6 +21,7 @@ use Symfony\Component\Uid\Ulid;
 final class GenerateUlidCommandTest extends TestCase
 {
     /**
+     * @group nophpunit11
      * @group time-sensitive
      */
     public function testDefaults()
diff --git a/src/Symfony/Component/Uid/Tests/UlidTest.php b/src/Symfony/Component/Uid/Tests/UlidTest.php
index f34660f..63ae540 100644
--- a/src/Symfony/Component/Uid/Tests/UlidTest.php
+++ b/src/Symfony/Component/Uid/Tests/UlidTest.php
@@ -23,6 +23,7 @@ class UlidTest extends TestCase
 {
     /**
      * @group time-sensitive
+     * @group nophpunit11
      */
     public function testGenerate()
     {
diff --git a/src/Symfony/Component/Validator/Tests/Constraints/AbstractComparisonValidatorTestCase.php b/src/Symfony/Component/Validator/Tests/Constraints/AbstractComparisonValidatorTestCase.php
index 25fed97..3d23d91 100644
--- a/src/Symfony/Component/Validator/Tests/Constraints/AbstractComparisonValidatorTestCase.php
+++ b/src/Symfony/Component/Validator/Tests/Constraints/AbstractComparisonValidatorTestCase.php
@@ -96,7 +96,7 @@ abstract class AbstractComparisonValidatorTestCase extends ConstraintValidatorTe
     }
 
     /**
-     * @dataProvider provideValidComparisonsToPropertyPath
+     * @group nophpunit11
      */
     public function testValidComparisonToPropertyPath($comparedValue)
     {
diff --git a/src/Symfony/Component/Validator/Tests/Constraints/RangeValidatorTest.php b/src/Symfony/Component/Validator/Tests/Constraints/RangeValidatorTest.php
index 423c8d4..22fc77c 100644
--- a/src/Symfony/Component/Validator/Tests/Constraints/RangeValidatorTest.php
+++ b/src/Symfony/Component/Validator/Tests/Constraints/RangeValidatorTest.php
@@ -598,7 +598,7 @@ class RangeValidatorTest extends ConstraintValidatorTestCase
     }
 
     /**
-     * @dataProvider throwsOnInvalidStringDatesProvider
+     * @group nophpunit11
      */
     public function testThrowsOnInvalidStringDates($expectedMessage, $value, $min, $max)
     {
diff --git a/src/Symfony/Component/Validator/Tests/Mapping/Loader/PropertyInfoLoaderTest.php b/src/Symfony/Component/Validator/Tests/Mapping/Loader/PropertyInfoLoaderTest.php
index ae5253a..8c06cd9 100644
--- a/src/Symfony/Component/Validator/Tests/Mapping/Loader/PropertyInfoLoaderTest.php
+++ b/src/Symfony/Component/Validator/Tests/Mapping/Loader/PropertyInfoLoaderTest.php
@@ -36,6 +36,9 @@ use Symfony\Component\Validator\Validation;
  */
 class PropertyInfoLoaderTest extends TestCase
 {
+    /**
+     * @group nophpunit11
+     */
     public function testLoadClassMetadata()
     {
         $propertyListExtractor = $this->createMock(PropertyListExtractorInterface::class);
diff --git a/src/Symfony/Component/VarDumper/Tests/Caster/DoctrineCasterTest.php b/src/Symfony/Component/VarDumper/Tests/Caster/DoctrineCasterTest.php
index 4aac072..5bf357d 100644
--- a/src/Symfony/Component/VarDumper/Tests/Caster/DoctrineCasterTest.php
+++ b/src/Symfony/Component/VarDumper/Tests/Caster/DoctrineCasterTest.php
@@ -25,6 +25,9 @@ class DoctrineCasterTest extends TestCase
 {
     use VarDumperTestTrait;
 
+    /**
+     * @group nophpunit11
+     */
     public function testCastPersistentCollection()
     {
         $classMetadata = new ClassMetadata(__CLASS__);
