--- ../Tests/DeprecationErrorHandler/DeprecationTest.php	2025-09-17 19:57:38.443613770 +0300
+++ ../Tests/DeprecationErrorHandler/DeprecationTest.php	2025-09-17 19:58:37.114860625 +0300
@@ -11,11 +11,14 @@
 
 namespace Symfony\Bridge\PhpUnit\Tests\DeprecationErrorHandler;
 
+use PHPUnit\Framework\Attributes\DataProvider;
+use PHPUnit\Framework\Attributes\RequiresPhpunit;
 use PHPUnit\Framework\TestCase;
 use Symfony\Bridge\PhpUnit\DeprecationErrorHandler;
 use Symfony\Bridge\PhpUnit\DeprecationErrorHandler\Deprecation;
 use Symfony\Bridge\PhpUnit\Legacy\SymfonyTestsListenerForV7;
 
+#[RequiresPhpunit('<10')]
 class DeprecationTest extends TestCase
 {
     private static $vendorDir;
--- ../Tests/DeprecationErrorHandler/ConfigurationTest.php	2025-09-17 20:12:20.872248185 +0300
+++ ../Tests/DeprecationErrorHandler/ConfigurationTest.php	2025-09-17 20:12:39.235324408 +0300
@@ -11,12 +11,14 @@
 
 namespace Symfony\Bridge\PhpUnit\Tests\DeprecationErrorHandler;
 
+use PHPUnit\Framework\Attributes\RequiresPhpunit;
 use PHPUnit\Framework\TestCase;
 use Symfony\Bridge\PhpUnit\DeprecationErrorHandler\Configuration;
 use Symfony\Bridge\PhpUnit\DeprecationErrorHandler\Deprecation;
 use Symfony\Bridge\PhpUnit\DeprecationErrorHandler\DeprecationGroup;
 use Symfony\Component\ErrorHandler\DebugClassLoader;
 
+#[RequiresPhpunit('<10')]
 class ConfigurationTest extends TestCase
 {
     private $files;
