Run Rector on your code to see what it can do for you:

 <?php
 
 /*
 
 namespace Nelmio\Alice\Generator\Resolver;
 
+use PHPUnit\Framework\Attributes\CoversClass;
+use PHPUnit\Framework\Attributes\Depends;
 use Nelmio\Alice\Definition\Value\UniqueValue;
 use Nelmio\Alice\Entity\StdClassFactory;
 use PHPUnit\Framework\TestCase;
 use stdClass;
 
-/**
- * @covers \Nelmio\Alice\Generator\Resolver\UniqueValuesPool
- * @internal
- */
+/**
+ * @internal
+ */
+#[CoversClass(\Nelmio\Alice\Generator\Resolver\UniqueValuesPool::class)]
 final class UniqueValuesPoolTest extends TestCase
 {
-    /**
-     * @depends \Nelmio\Alice\Definition\Value\UniqueValueTest::testIsImmutable
-     */
+    #[Depends(\Nelmio\Alice\Definition\Value\UniqueValueTest::testIsImmutable)]
     public function testIsImmutable(): void
     {
         self::assertTrue(true, 'Nothing to do.');
     }
 }
PHP snippet to change
Config  rector.php
Rector version: 2efb35 - released at 2025-12-26 22:19