diff --git a/Tests/Functional/ContainerTest.php b/Tests/Functional/ContainerTest.php index 1167c98..cb92063 100644 --- a/Tests/Functional/ContainerTest.php +++ b/Tests/Functional/ContainerTest.php @@ -24,6 +24,8 @@ */ use Codappix\Typo3PhpDatasets\TestingFramework; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\Test; use TYPO3\TestingFramework\Core\Functional\Framework\Frontend\InternalRequest; use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase; @@ -133,11 +135,8 @@ public static function imageScalingValuesDataProvider(): iterable ]; } - /** - * @test - * - * @dataProvider imageScalingValuesDataProvider - */ + #[Test] + #[DataProvider(methodName: 'imageScalingValuesDataProvider')] public function imageIsScaledCorrectly(string $phpDataSet, array $expectedValues): void { $this->importPHPDataSet(__DIR__ . '/../Fixtures/container_example/Test/Fixtures/' . $phpDataSet);