File tree Expand file tree Collapse file tree 2 files changed +51
-46
lines changed
src/Standards/Generic/Tests/NamingConventions Expand file tree Collapse file tree 2 files changed +51
-46
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -26,55 +26,60 @@ final class CamelCapsFunctionNameUnitTest extends AbstractSniffUnitTest
26
26
* The key of the array should represent the line number and the value
27
27
* should represent the number of errors that should occur on that line.
28
28
*
29
+ * @param string $testFile The name of the test file to process.
30
+ *
29
31
* @return array<int, int>
30
32
*/
31
- public function getErrorList ()
33
+ public function getErrorList ($ testFile = '' )
32
34
{
33
- $ errors = [
34
- 10 => 1 ,
35
- 11 => 1 ,
36
- 12 => 1 ,
37
- 13 => 1 ,
38
- 16 => 1 ,
39
- 17 => 1 ,
40
- 20 => 1 ,
41
- 21 => 1 ,
42
- 24 => 1 ,
43
- 25 => 1 ,
44
- 30 => 1 ,
45
- 31 => 1 ,
46
- 50 => 1 ,
47
- 52 => 1 ,
48
- 53 => 2 ,
49
- 57 => 1 ,
50
- 58 => 1 ,
51
- 59 => 1 ,
52
- 60 => 1 ,
53
- 61 => 1 ,
54
- 62 => 1 ,
55
- 63 => 1 ,
56
- 64 => 1 ,
57
- 65 => 1 ,
58
- 66 => 1 ,
59
- 67 => 1 ,
60
- 68 => 2 ,
61
- 69 => 1 ,
62
- 71 => 1 ,
63
- 72 => 1 ,
64
- 73 => 2 ,
65
- 118 => 1 ,
66
- 144 => 1 ,
67
- 146 => 1 ,
68
- 147 => 2 ,
69
- 158 => 1 ,
70
- 159 => 1 ,
71
- 179 => 1 ,
72
- 180 => 2 ,
73
- 183 => 1 ,
74
- 184 => 1 ,
75
- ];
76
-
77
- return $ errors ;
35
+ switch ($ testFile ) {
36
+ case 'CamelCapsFunctionNameUnitTest.1.inc ' :
37
+ return [
38
+ 10 => 1 ,
39
+ 11 => 1 ,
40
+ 12 => 1 ,
41
+ 13 => 1 ,
42
+ 16 => 1 ,
43
+ 17 => 1 ,
44
+ 20 => 1 ,
45
+ 21 => 1 ,
46
+ 24 => 1 ,
47
+ 25 => 1 ,
48
+ 30 => 1 ,
49
+ 31 => 1 ,
50
+ 50 => 1 ,
51
+ 52 => 1 ,
52
+ 53 => 2 ,
53
+ 57 => 1 ,
54
+ 58 => 1 ,
55
+ 59 => 1 ,
56
+ 60 => 1 ,
57
+ 61 => 1 ,
58
+ 62 => 1 ,
59
+ 63 => 1 ,
60
+ 64 => 1 ,
61
+ 65 => 1 ,
62
+ 66 => 1 ,
63
+ 67 => 1 ,
64
+ 68 => 2 ,
65
+ 69 => 1 ,
66
+ 71 => 1 ,
67
+ 72 => 1 ,
68
+ 73 => 2 ,
69
+ 118 => 1 ,
70
+ 144 => 1 ,
71
+ 146 => 1 ,
72
+ 147 => 2 ,
73
+ 158 => 1 ,
74
+ 159 => 1 ,
75
+ 179 => 1 ,
76
+ 180 => 2 ,
77
+ 183 => 1 ,
78
+ 184 => 1 ,
79
+ ];
80
+ default :
81
+ return [];
82
+ }//end switch
78
83
79
84
}//end getErrorList()
80
85
You can’t perform that action at this time.
0 commit comments