diff --git a/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc b/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.1.inc similarity index 97% rename from src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc rename to src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.1.inc index 6496f7fb34..de0235cdd2 100644 --- a/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc +++ b/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.1.inc @@ -318,7 +318,3 @@ endif; // Reset property. // phpcs:set Squiz.ControlStructures.ControlSignature requiredSpacesBeforeColon 1 - -// Intentional parse error. This should be the last test in the file. -foreach - // Some unrelated comment. diff --git a/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc.fixed b/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.1.inc.fixed similarity index 97% rename from src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc.fixed rename to src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.1.inc.fixed index c8834a3dd1..03e6bf2c66 100644 --- a/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc.fixed +++ b/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.1.inc.fixed @@ -322,7 +322,3 @@ endif; // Reset property. // phpcs:set Squiz.ControlStructures.ControlSignature requiredSpacesBeforeColon 1 - -// Intentional parse error. This should be the last test in the file. -foreach - // Some unrelated comment. diff --git a/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.2.inc b/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.2.inc new file mode 100644 index 0000000000..ef99b1a223 --- /dev/null +++ b/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.2.inc @@ -0,0 +1,5 @@ + 1, ]; - if ($testFile === 'ControlSignatureUnitTest.inc') { + switch ($testFile) { + case 'ControlSignatureUnitTest.1.inc': $errors[122] = 1; $errors[130] = 2; $errors[134] = 1; @@ -84,9 +85,14 @@ public function getErrorList($testFile='') $errors[306] = 3; $errors[309] = 1; $errors[315] = 1; - }//end if + return $errors; - return $errors; + case 'ControlSignatureUnitTest.js': + return $errors; + + default: + return []; + }//end switch }//end getErrorList()