File tree Expand file tree Collapse file tree 1 file changed +66
-10
lines changed
Universal/Tests/DeclareStatements Expand file tree Collapse file tree 1 file changed +66
-10
lines changed Original file line number Diff line number Diff line change 1515/**
1616 * Unit test class for the DeclareStatementsStyleUnitTest sniff.
1717 *
18- * @covers PHPCSExtra\Universal\Sniffs\DeclareStatements\DeclareStatementsStyleSniff
18+ * @covers PHPCSExtra\Universal\Sniffs\DeclareStatements\BlockModeSniff
1919 *
2020 * @since 1.0.0
2121 */
22- class DeclareStatementsStyleUnitTest extends AbstractSniffUnitTest
22+ class BlockModeUnitTest extends AbstractSniffUnitTest
2323{
2424
2525 /**
@@ -32,24 +32,80 @@ class DeclareStatementsStyleUnitTest extends AbstractSniffUnitTest
3232 public function getErrorList ($ testFile = '' )
3333 {
3434 switch ($ testFile ) {
35- case 'DeclareStatementsStyleUnitTest .1.inc ' :
35+ case 'BlockModeUnitTest .1.inc ' :
3636 return [
37+ 21 => 1 ,
38+ 25 => 1 ,
39+ 29 => 1 ,
40+ 38 => 1 ,
41+ 47 => 1 ,
42+ 51 => 1 ,
43+ 55 => 1 ,
44+ 56 => 1 ,
45+ 60 => 1 ,
46+ 69 => 1 ,
3747 ];
3848
39- case 'DeclareStatementsStyleUnitTest.2 .inc ' :
49+ case 'BlockModeUnitTest.3 .inc ' :
4050 return [
51+ 7 => 1 ,
52+ 11 => 1 ,
53+ 19 => 1 ,
54+ 20 => 1 ,
55+ 31 => 1 ,
56+ 38 => 1 ,
57+ 42 => 1 ,
58+ 43 => 1 ,
4159 ];
4260
43- case 'DeclareStatementsStyleUnitTest.3 .inc ' :
61+ case 'BlockModeUnitTest.4 .inc ' :
4462 return [
63+ 27 => 1 ,
64+ 31 => 1 ,
65+ 56 => 1 ,
66+ 75 => 1 ,
67+ 79 => 1 ,
68+ 86 => 1 ,
69+ 90 => 1 ,
70+ 98 => 1 ,
71+ 102 => 1 ,
72+ 117 => 1 ,
73+ 121 => 1 ,
74+ 125 => 1 ,
75+ 144 => 1 ,
76+ 157 => 1 ,
77+ 161 => 1 ,
78+ 167 => 1 ,
79+ 188 => 1 ,
80+ 190 => 1 ,
4581 ];
4682
47- case 'DeclareStatementsStyleUnitTest.4.inc ' :
48- return [
49- ];
50-
51- case 'DeclareStatementsStyleUnitTest.5.inc ' :
83+ case 'BlockModeUnitTest.5.inc ' :
5284 return [
85+ 51 => 1 ,
86+ 55 => 1 ,
87+ 56 => 1 ,
88+ 66 => 1 ,
89+ 86 => 1 ,
90+ 111 => 1 ,
91+ 117 => 1 ,
92+ 126 => 1 ,
93+ 134 => 1 ,
94+ 135 => 1 ,
95+ 144 => 1 ,
96+ 148 => 1 ,
97+ 172 => 1 ,
98+ 181 => 1 ,
99+ 185 => 1 ,
100+ 192 => 1 ,
101+ 213 => 1 ,
102+ 229 => 1 ,
103+ 239 => 1 ,
104+ 245 => 1 ,
105+ 248 => 1 ,
106+ 268 => 1 ,
107+ 276 => 1 ,
108+ 281 => 1 ,
53109 ];
54110
55111 default :
You can’t perform that action at this time.
0 commit comments