diff --git a/src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.inc b/src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.1.inc similarity index 96% rename from src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.inc rename to src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.1.inc index 8f8d64ab73..2503f599d2 100644 --- a/src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.inc +++ b/src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.1.inc @@ -114,6 +114,3 @@ class ConstructorPropertyPromotionMixedWithNormalParams { mixed $requiredParam, ) {} } - -// Intentional syntax error. Must be last thing in the file. -function diff --git a/src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.2.inc b/src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.2.inc new file mode 100644 index 0000000000..3cfece7a11 --- /dev/null +++ b/src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.2.inc @@ -0,0 +1,7 @@ + */ - public function getErrorList() + public function getErrorList($testFile='') { - return [ - 29 => 1, - 34 => 1, - 39 => 1, - 71 => 1, - 76 => 1, - 81 => 1, - 91 => 1, - 99 => 1, - 101 => 1, - 106 => 1, - 114 => 1, - ]; + switch ($testFile) { + case 'ValidDefaultValueUnitTest.1.inc': + return [ + 29 => 1, + 34 => 1, + 39 => 1, + 71 => 1, + 76 => 1, + 81 => 1, + 91 => 1, + 99 => 1, + 101 => 1, + 106 => 1, + 114 => 1, + ]; + + default: + return []; + } }//end getErrorList()