Closed TomasVotruba closed 1 year ago
use PHPUnit\Framework\TestCase; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\CoversFunction; -/** - * @covers SomeClass - */ +#[CoversClass(SomeClass::class)] final class SomeTest extends TestCase { - /** - * @covers ::someFunction - */ + #[CoversFunction('someFunction')] public function test() { } }
@sebastianbergmann Hi Sebastian, I've extended PHPUnit annotation to attribute set with the few edge cases, so we're ready when PHPUnit 10 is out :+1: