Skip to content

Commit a50b5fb

Browse files
committed
PEAR/Functions/FunctionDeclaration: rename test case file
... in anticipation of adding additional test case files.
1 parent b6e99c1 commit a50b5fb

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ final class FunctionDeclarationUnitTest extends AbstractSniffUnitTest
3232
*/
3333
public function getErrorList($testFile='')
3434
{
35-
if ($testFile === 'FunctionDeclarationUnitTest.inc') {
36-
$errors = [
35+
switch ($testFile) {
36+
case 'FunctionDeclarationUnitTest.1.inc':
37+
return [
3738
3 => 1,
3839
4 => 1,
3940
5 => 1,
@@ -108,8 +109,9 @@ public function getErrorList($testFile='')
108109
483 => 1,
109110
490 => 2,
110111
];
111-
} else {
112-
$errors = [
112+
113+
case 'FunctionDeclarationUnitTest.js':
114+
return [
113115
3 => 1,
114116
4 => 1,
115117
5 => 1,
@@ -121,9 +123,10 @@ public function getErrorList($testFile='')
121123
41 => 1,
122124
48 => 1,
123125
];
124-
}//end if
125126

126-
return $errors;
127+
default:
128+
return [];
129+
}//end switch
127130

128131
}//end getErrorList()
129132

0 commit comments

Comments
 (0)