File tree Expand file tree Collapse file tree 3 files changed +19
-11
lines changed
src/Standards/PEAR/Tests/Classes Expand file tree Collapse file tree 3 files changed +19
-11
lines changed Original file line number Diff line number Diff line change @@ -892,7 +892,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
892
892
</dir >
893
893
<dir name =" Tests" >
894
894
<dir name =" Classes" >
895
- <file baseinstalldir =" PHP/CodeSniffer" name =" ClassDeclarationUnitTest.inc" role =" test" />
895
+ <file baseinstalldir =" PHP/CodeSniffer" name =" ClassDeclarationUnitTest.1. inc" role =" test" />
896
896
<file baseinstalldir =" PHP/CodeSniffer" name =" ClassDeclarationUnitTest.php" role =" test" />
897
897
</dir >
898
898
<dir name =" Commenting" >
File renamed without changes.
Original file line number Diff line number Diff line change @@ -21,19 +21,27 @@ class ClassDeclarationUnitTest extends AbstractSniffUnitTest
21
21
* The key of the array should represent the line number and the value
22
22
* should represent the number of errors that should occur on that line.
23
23
*
24
+ * @param string $testFile The name of the file being tested.
25
+ *
24
26
* @return array<int, int>
25
27
*/
26
- public function getErrorList ()
28
+ public function getErrorList ($ testFile = ' ClassDeclarationUnitTest.1.inc ' )
27
29
{
28
- return [
29
- 21 => 1 ,
30
- 22 => 1 ,
31
- 23 => 1 ,
32
- 27 => 1 ,
33
- 33 => 1 ,
34
- 38 => 1 ,
35
- 49 => 1 ,
36
- ];
30
+ switch ($ testFile ) {
31
+ case 'ClassDeclarationUnitTest.1.inc ' :
32
+ return [
33
+ 21 => 1 ,
34
+ 22 => 1 ,
35
+ 23 => 1 ,
36
+ 27 => 1 ,
37
+ 33 => 1 ,
38
+ 38 => 1 ,
39
+ 49 => 1 ,
40
+ ];
41
+
42
+ default :
43
+ return [];
44
+ }//end switch
37
45
38
46
}//end getErrorList()
39
47
You can’t perform that action at this time.
0 commit comments