@@ -71,13 +71,13 @@ class ClassStructureSniffTest extends TestCase
71
71
72
72
public function testNoErrors (): void
73
73
{
74
- $ report = self ::checkFile (__DIR__ . '/data/classStructureSniffNoErrors .php ' );
74
+ $ report = self ::checkFile (__DIR__ . '/data/classStructureNoErrors .php ' );
75
75
self ::assertNoSniffErrorInFile ($ report );
76
76
}
77
77
78
78
public function testErrors (): void
79
79
{
80
- $ report = self ::checkFile (__DIR__ . '/data/classStructureSniffErrors .php ' );
80
+ $ report = self ::checkFile (__DIR__ . '/data/classStructureErrors .php ' );
81
81
82
82
self ::assertSame (30 , $ report ->getErrorCount ());
83
83
@@ -115,7 +115,7 @@ public function testErrors(): void
115
115
116
116
public function testManyErrors (): void
117
117
{
118
- $ report = self ::checkFile (__DIR__ . '/data/classStructureSniffManyErrors .php ' );
118
+ $ report = self ::checkFile (__DIR__ . '/data/classStructureManyErrors .php ' );
119
119
120
120
self ::assertSame (1 , $ report ->getErrorCount ());
121
121
self ::assertAllFixedInFile ($ report );
@@ -124,7 +124,7 @@ public function testManyErrors(): void
124
124
public function testNoErrorsWithDifferentRules (): void
125
125
{
126
126
$ report = self ::checkFile (
127
- __DIR__ . '/data/classStructureSniffNoErrorsWithDifferentRules .php ' ,
127
+ __DIR__ . '/data/classStructureNoErrorsWithDifferentRules .php ' ,
128
128
['groups ' => self ::DIFFERENT_RULES ],
129
129
);
130
130
@@ -134,7 +134,7 @@ public function testNoErrorsWithDifferentRules(): void
134
134
public function testErrorsWithDifferentRules (): void
135
135
{
136
136
$ report = self ::checkFile (
137
- __DIR__ . '/data/classStructureSniffErrorsWithDifferentRules .php ' ,
137
+ __DIR__ . '/data/classStructureErrorsWithDifferentRules .php ' ,
138
138
['groups ' => self ::DIFFERENT_RULES ],
139
139
);
140
140
@@ -195,7 +195,7 @@ public function testErrorsWithShortcuts(): void
195
195
public function testNoErrorsWithMethodGroupRules (): void
196
196
{
197
197
$ report = self ::checkFile (
198
- __DIR__ . '/data/classStructureSniffNoErrorsWithMethodGroupRules .php ' ,
198
+ __DIR__ . '/data/classStructureNoErrorsWithMethodGroupRules .php ' ,
199
199
[
200
200
'methodGroups ' => self ::METHOD_GROUPS ,
201
201
'groups ' => self ::METHOD_GROUP_RULES ,
@@ -208,7 +208,7 @@ public function testNoErrorsWithMethodGroupRules(): void
208
208
public function testErrorsWithMethodGroupRules (): void
209
209
{
210
210
$ report = self ::checkFile (
211
- __DIR__ . '/data/classStructureSniffErrorsWithMethodGroupRules .php ' ,
211
+ __DIR__ . '/data/classStructureErrorsWithMethodGroupRules .php ' ,
212
212
[
213
213
'methodGroups ' => self ::METHOD_GROUPS ,
214
214
'groups ' => self ::METHOD_GROUP_RULES ,
@@ -230,7 +230,7 @@ public function testThrowExceptionForUnsupportedGroup(): void
230
230
{
231
231
try {
232
232
self ::checkFile (
233
- __DIR__ . '/data/classStructureSniffNoErrors .php ' ,
233
+ __DIR__ . '/data/classStructureNoErrors .php ' ,
234
234
['groups ' => ['whatever ' ]],
235
235
);
236
236
self ::fail ();
@@ -243,7 +243,7 @@ public function testThrowExceptionForMissingGroups(): void
243
243
{
244
244
try {
245
245
self ::checkFile (
246
- __DIR__ . '/data/classStructureSniffNoErrors .php ' ,
246
+ __DIR__ . '/data/classStructureNoErrors .php ' ,
247
247
['groups ' => ['uses ' ]],
248
248
);
249
249
self ::fail ();
0 commit comments