Skip to content

Commit 249e619

Browse files
committed
Use #[DataProvider] attribute in LevelsTestCase
1 parent 84f82a4 commit 249e619

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Testing/LevelsTestCase.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use PHPStan\File\FileWriter;
99
use PHPStan\ShouldNotHappenException;
1010
use PHPUnit\Framework\AssertionFailedError;
11+
use PHPUnit\Framework\Attributes\DataProvider;
1112
use PHPUnit\Framework\TestCase;
1213
use function array_merge;
1314
use function count;
@@ -48,9 +49,7 @@ protected function shouldAutoloadAnalysedFile(): bool
4849
return true;
4950
}
5051

51-
/**
52-
* @dataProvider dataTopics
53-
*/
52+
#[DataProvider('dataTopics')]
5453
public function testLevels(
5554
string $topic,
5655
): void

0 commit comments

Comments
 (0)