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); } }
Applied Rules:
Not a change you expect?
rector.php