File tree Expand file tree Collapse file tree 2 files changed +26
-18
lines changed
src/Standards/Generic/Tests/CodeAnalysis Expand file tree Collapse file tree 2 files changed +26
-18
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -41,27 +41,35 @@ public function getErrorList()
41
41
* The key of the array should represent the line number and the value
42
42
* should represent the number of warnings that should occur on that line.
43
43
*
44
+ * @param string $testFile The name of the file being tested.
45
+ *
44
46
* @return array<int, int>
45
47
*/
46
- public function getWarningList ()
48
+ public function getWarningList ($ testFile = '' )
47
49
{
48
- return [
49
- 3 => 1 ,
50
- 7 => 1 ,
51
- 78 => 1 ,
52
- 94 => 1 ,
53
- 100 => 1 ,
54
- 106 => 1 ,
55
- 117 => 1 ,
56
- 121 => 2 ,
57
- 125 => 2 ,
58
- 163 => 1 ,
59
- 172 => 1 ,
60
- 228 => 2 ,
61
- 232 => 2 ,
62
- 244 => 2 ,
63
- 248 => 2 ,
64
- ];
50
+ switch ($ testFile ) {
51
+ case 'UnusedFunctionParameterUnitTest.1.inc ' :
52
+ return [
53
+ 3 => 1 ,
54
+ 7 => 1 ,
55
+ 78 => 1 ,
56
+ 94 => 1 ,
57
+ 100 => 1 ,
58
+ 106 => 1 ,
59
+ 117 => 1 ,
60
+ 121 => 2 ,
61
+ 125 => 2 ,
62
+ 163 => 1 ,
63
+ 172 => 1 ,
64
+ 228 => 2 ,
65
+ 232 => 2 ,
66
+ 244 => 2 ,
67
+ 248 => 2 ,
68
+ ];
69
+
70
+ default :
71
+ return [];
72
+ }//end switch
65
73
66
74
}//end getWarningList()
67
75
You can’t perform that action at this time.
0 commit comments