File tree Expand file tree Collapse file tree 3 files changed +51
-43
lines changed
src/Standards/Squiz/Tests/WhiteSpace Expand file tree Collapse file tree 3 files changed +51
-43
lines changed File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -26,52 +26,60 @@ final class MemberVarSpacingUnitTest extends AbstractSniffUnitTest
2626 * The key of the array should represent the line number and the value
2727 * should represent the number of errors that should occur on that line.
2828 *
29+ * @param string $testFile The name of the file being tested.
30+ *
2931 * @return array<int, int>
3032 */
31- public function getErrorList ()
33+ public function getErrorList ($ testFile = '' )
3234 {
33- return [
34- 4 => 1 ,
35- 7 => 1 ,
36- 20 => 1 ,
37- 30 => 1 ,
38- 35 => 1 ,
39- 44 => 1 ,
40- 50 => 1 ,
41- 73 => 1 ,
42- 86 => 1 ,
43- 106 => 1 ,
44- 115 => 1 ,
45- 150 => 1 ,
46- 160 => 1 ,
47- 165 => 1 ,
48- 177 => 1 ,
49- 186 => 1 ,
50- 200 => 1 ,
51- 209 => 1 ,
52- 211 => 1 ,
53- 224 => 1 ,
54- 229 => 1 ,
55- 241 => 1 ,
56- 246 => 1 ,
57- 252 => 1 ,
58- 254 => 1 ,
59- 261 => 1 ,
60- 275 => 1 ,
61- 276 => 1 ,
62- 288 => 1 ,
63- 292 => 1 ,
64- 333 => 1 ,
65- 342 => 1 ,
66- 346 => 1 ,
67- 353 => 1 ,
68- 357 => 1 ,
69- 366 => 1 ,
70- 377 => 1 ,
71- 378 => 1 ,
72- 379 => 1 ,
73- 380 => 1 ,
74- ];
35+ switch ($ testFile ) {
36+ case 'MemberVarSpacingUnitTest.1.inc ' :
37+ return [
38+ 4 => 1 ,
39+ 7 => 1 ,
40+ 20 => 1 ,
41+ 30 => 1 ,
42+ 35 => 1 ,
43+ 44 => 1 ,
44+ 50 => 1 ,
45+ 73 => 1 ,
46+ 86 => 1 ,
47+ 106 => 1 ,
48+ 115 => 1 ,
49+ 150 => 1 ,
50+ 160 => 1 ,
51+ 165 => 1 ,
52+ 177 => 1 ,
53+ 186 => 1 ,
54+ 200 => 1 ,
55+ 209 => 1 ,
56+ 211 => 1 ,
57+ 224 => 1 ,
58+ 229 => 1 ,
59+ 241 => 1 ,
60+ 246 => 1 ,
61+ 252 => 1 ,
62+ 254 => 1 ,
63+ 261 => 1 ,
64+ 275 => 1 ,
65+ 276 => 1 ,
66+ 288 => 1 ,
67+ 292 => 1 ,
68+ 333 => 1 ,
69+ 342 => 1 ,
70+ 346 => 1 ,
71+ 353 => 1 ,
72+ 357 => 1 ,
73+ 366 => 1 ,
74+ 377 => 1 ,
75+ 378 => 1 ,
76+ 379 => 1 ,
77+ 380 => 1 ,
78+ ];
79+
80+ default :
81+ return [];
82+ }//end switch
7583
7684 }//end getErrorList()
7785
You can’t perform that action at this time.
0 commit comments