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 15
15
/**
16
16
* Unit test class for the DeclareStatementsStyleUnitTest sniff.
17
17
*
18
- * @covers PHPCSExtra\Universal\Sniffs\DeclareStatements\DeclareStatementsStyleSniff
18
+ * @covers PHPCSExtra\Universal\Sniffs\DeclareStatements\BlockModeSniff
19
19
*
20
20
* @since 1.0.0
21
21
*/
22
- class DeclareStatementsStyleUnitTest extends AbstractSniffUnitTest
22
+ class BlockModeUnitTest extends AbstractSniffUnitTest
23
23
{
24
24
25
25
/**
@@ -32,24 +32,80 @@ class DeclareStatementsStyleUnitTest extends AbstractSniffUnitTest
32
32
public function getErrorList ($ testFile = '' )
33
33
{
34
34
switch ($ testFile ) {
35
- case 'DeclareStatementsStyleUnitTest .1.inc ' :
35
+ case 'BlockModeUnitTest .1.inc ' :
36
36
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 ,
37
47
];
38
48
39
- case 'DeclareStatementsStyleUnitTest.2 .inc ' :
49
+ case 'BlockModeUnitTest.3 .inc ' :
40
50
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 ,
41
59
];
42
60
43
- case 'DeclareStatementsStyleUnitTest.3 .inc ' :
61
+ case 'BlockModeUnitTest.4 .inc ' :
44
62
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 ,
45
81
];
46
82
47
- case 'DeclareStatementsStyleUnitTest.4.inc ' :
48
- return [
49
- ];
50
-
51
- case 'DeclareStatementsStyleUnitTest.5.inc ' :
83
+ case 'BlockModeUnitTest.5.inc ' :
52
84
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 ,
53
109
];
54
110
55
111
default :
You can’t perform that action at this time.
0 commit comments