Skip to content

Commit

Permalink
PEAR/Functions/FunctionDeclaration: rename test case file
Browse files Browse the repository at this point in the history
... in anticipation of adding additional test case files.
  • Loading branch information
jrfnl committed Apr 3, 2024
1 parent b6e99c1 commit a50b5fb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ final class FunctionDeclarationUnitTest extends AbstractSniffUnitTest
*/
public function getErrorList($testFile='')
{
if ($testFile === 'FunctionDeclarationUnitTest.inc') {
$errors = [
switch ($testFile) {
case 'FunctionDeclarationUnitTest.1.inc':
return [
3 => 1,
4 => 1,
5 => 1,
Expand Down Expand Up @@ -108,8 +109,9 @@ public function getErrorList($testFile='')
483 => 1,
490 => 2,
];
} else {
$errors = [

case 'FunctionDeclarationUnitTest.js':
return [
3 => 1,
4 => 1,
5 => 1,
Expand All @@ -121,9 +123,10 @@ public function getErrorList($testFile='')
41 => 1,
48 => 1,
];
}//end if

return $errors;
default:
return [];
}//end switch

}//end getErrorList()

Expand Down

0 comments on commit a50b5fb

Please sign in to comment.