From defc42ffd0c35d243bfb49f4c4a8738284c042e4 Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Mon, 13 May 2024 15:07:06 -0300 Subject: [PATCH 1/2] Generic/SpaceAfterNot: rename test case file Doing this to be able to create tests with syntax errors on separate files. --- .../{SpaceAfterNotUnitTest.inc => SpaceAfterNotUnitTest.1.inc} | 0 ...rNotUnitTest.inc.fixed => SpaceAfterNotUnitTest.1.inc.fixed} | 0 .../Generic/Tests/Formatting/SpaceAfterNotUnitTest.php | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) rename src/Standards/Generic/Tests/Formatting/{SpaceAfterNotUnitTest.inc => SpaceAfterNotUnitTest.1.inc} (100%) rename src/Standards/Generic/Tests/Formatting/{SpaceAfterNotUnitTest.inc.fixed => SpaceAfterNotUnitTest.1.inc.fixed} (100%) diff --git a/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.inc b/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.1.inc similarity index 100% rename from src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.inc rename to src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.1.inc diff --git a/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.inc.fixed b/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.1.inc.fixed similarity index 100% rename from src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.inc.fixed rename to src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.1.inc.fixed diff --git a/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.php b/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.php index f79cc7b987..a439517ad4 100644 --- a/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.php +++ b/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.php @@ -33,7 +33,7 @@ final class SpaceAfterNotUnitTest extends AbstractSniffUnitTest public function getErrorList($testFile='') { switch ($testFile) { - case 'SpaceAfterNotUnitTest.inc': + case 'SpaceAfterNotUnitTest.1.inc': return [ 3 => 2, 4 => 2, From 3404ca3530dbd86b62454be20d6cdab29d0371a1 Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Mon, 13 May 2024 15:17:16 -0300 Subject: [PATCH 2/2] Generic/SpaceAfterNot: improve code coverage --- .../Generic/Tests/Formatting/SpaceAfterNotUnitTest.2.inc | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.2.inc diff --git a/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.2.inc b/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.2.inc new file mode 100644 index 0000000000..2d6fa80a80 --- /dev/null +++ b/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.2.inc @@ -0,0 +1,7 @@ +