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

 <?php
 
+use PHPUnit\Framework\Attributes\CoversClass;
+use PHPUnit\Framework\Attributes\Test;
 use PHPUnit\Framework\TestCase;
 
-/**
- * @coversDefaultClass \Commons\Behavior\ValueObject\AbstractValueObject
- */
+#[CoversClass(\Commons\Behavior\ValueObject\AbstractValueObject::class)]
 class RectorTest extends TestCase
 {
-    /**
-     * @covers ::getValue
-     * @test
-     *
-     */
+    #[Test]
     public function it_works()
     {
         $this->assertTrue(true);
     }
 
-    /**
-     * @covers ::equals
-     * @test
-     *
-     */
+    #[Test]
     public function it_works2()
     {
         $this->assertTrue(true);
     }
}
PHP snippet to change
Config  rector.php
Rector version: f1c510 - released at 2026-01-15 17:35