Skip to content

Commit 316736f

Browse files
Use attributes instead of annotations
1 parent 1eef0f9 commit 316736f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/end-to-end/logging/_files/CaseWithDollarSignTest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
*/
1010
namespace PHPUnit\TestFixture;
1111

12+
use PHPUnit\Framework\Attributes\DataProvider;
13+
use PHPUnit\Framework\Attributes\TestDox;
1214
use PHPUnit\Framework\TestCase;
1315

1416
final class CaseWithDollarSignTest extends TestCase
@@ -24,11 +26,8 @@ public static function dataProvider(): iterable
2426
yield ['Alone $ surrounded by spaces'];
2527
}
2628

27-
/**
28-
* @testdox The "$x" is used for this test
29-
*
30-
* @dataProvider dataProvider
31-
*/
29+
#[DataProvider('dataProvider')]
30+
#[TestDox('The "$x" is used for this test')]
3231
public function testSomething(string $x): void
3332
{
3433
$this->assertTrue(true);

0 commit comments

Comments
 (0)