diff --git a/src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.inc b/src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.1.inc similarity index 54% rename from src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.inc rename to src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.1.inc index 0d220c96ed..58b604f738 100644 --- a/src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.inc +++ b/src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.1.inc @@ -11,7 +11,3 @@ if (true) { if (file_exists(__FILE__) === true) { } - -// Intentional parse error/live coding. -// This needs to be the last test in the file. -if(true diff --git a/src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.2.inc b/src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.2.inc new file mode 100644 index 0000000000..84306a522d --- /dev/null +++ b/src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.2.inc @@ -0,0 +1,4 @@ + */ - public function getWarningList() + public function getWarningList($testFile='') { - return [ - 3 => 1, - 5 => 1, - 7 => 1, - ]; + switch ($testFile) { + case 'UnconditionalIfStatementUnitTest.1.inc': + return [ + 3 => 1, + 5 => 1, + 7 => 1, + ]; + + default: + return []; + }//end switch }//end getWarningList()