diff --git a/tests/LegacyUnitHtmlTest.php b/tests/LegacyUnitHtmlTest.php index 777028b07057754a98603807c550841d554458d4..14ed2ae58fd5b7beb0404b00ecd4036b3ec4b4b8 100644 --- a/tests/LegacyUnitHtmlTest.php +++ b/tests/LegacyUnitHtmlTest.php @@ -14,16 +14,18 @@ declare(strict_types=1); namespace Spip\Core\Tests; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\Group; use PHPUnit\Framework\TestCase; /** * LegacyUnitHtmlTest test - runs all the unit/ php tests and check the ouput is 'OK' */ +#[Group('legacy')] class LegacyUnitHtmlTest extends TestCase { - /** - * @dataProvider providerLegacyHtmlfileName - */ + + #[DataProvider('providerLegacyHtmlfileName')] public function testLegacyUnitHtml($inFname, $output) { $result = $this->legacyHtmlRun($inFname); diff --git a/tests/LegacyUnitPhpTest.php b/tests/LegacyUnitPhpTest.php index db5b2d39c3a72cb2226660264e0ff4c619312f18..8aa5a7217f2c4d4dd59787ad93f386d3fb44c00d 100644 --- a/tests/LegacyUnitPhpTest.php +++ b/tests/LegacyUnitPhpTest.php @@ -14,16 +14,18 @@ declare(strict_types=1); namespace Spip\Core\Tests; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\Group; use PHPUnit\Framework\TestCase; + /** * LegacyUnitPhpTest test - runs all the unit/ php tests and check the ouput is 'OK' */ +#[Group('legacy')] class LegacyUnitPhpTest extends TestCase { - /** - * @dataProvider providerLegacyPhpfileName - */ + #[DataProvider('providerLegacyPhpfileName')] public function testLegacyUnitPHP($inFname, $output) { $result = $this->legacyPhpRun($inFname);