From 4b8744eafda2b4491c747f44b68875010f5dd6bc Mon Sep 17 00:00:00 2001
From: Matthieu Marcillaud <marcimat@rezo.net>
Date: Tue, 28 Mar 2023 00:43:57 +0200
Subject: [PATCH] =?UTF-8?q?feat:=20Les=20tests=20'legacy'=20forment=20un?=
 =?UTF-8?q?=20groupe=20(qu=E2=80=99on=20peut=20exclure=20avec=20`--exclude?=
 =?UTF-8?q?-group=20legacy`)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Refs: #23
---
 tests/LegacyUnitHtmlTest.php | 8 +++++---
 tests/LegacyUnitPhpTest.php  | 8 +++++---
 2 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/tests/LegacyUnitHtmlTest.php b/tests/LegacyUnitHtmlTest.php
index 777028b070..14ed2ae58f 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 db5b2d39c3..8aa5a7217f 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);
-- 
GitLab