File tree Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ public function register()
27
27
T_CLASS ,
28
28
T_INTERFACE ,
29
29
T_TRAIT ,
30
+ T_ENUM ,
30
31
];
31
32
32
33
}//end register()
Original file line number Diff line number Diff line change 5
5
class ClassFileNameUnitTest {}
6
6
interface ClassFileNameUnitTest {}
7
7
trait ClassFileNameUnitTest {}
8
+ enum ClassFileNameUnitTest {}
8
9
9
10
10
11
// Invalid filename matching class name (case sensitive).
@@ -17,6 +18,9 @@ interface CLASSFILENAMEUNITTEST {}
17
18
trait classFileNameUnitTest {}
18
19
trait classfilenameunittest {}
19
20
trait CLASSFILENAMEUNITTEST {}
21
+ enum classFileNameUnitTest {}
22
+ enum classfilenameunittest {}
23
+ enum CLASSFILENAMEUNITTEST {}
20
24
21
25
22
26
// Invalid non-filename matching class names.
@@ -32,6 +36,10 @@ trait CompletelyWrongClassName {}
32
36
trait ClassFileNameUnitTestExtra {}
33
37
trait ClassFileNameUnitTestInc {}
34
38
trait ExtraClassFileNameUnitTest {}
39
+ enum CompletelyWrongClassName {}
40
+ enum ClassFileNameUnitTestExtra {}
41
+ enum ClassFileNameUnitTestInc {}
42
+ enum ExtraClassFileNameUnitTest {}
35
43
36
44
37
- ?>
45
+ ?>
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ class ClassFileNameUnitTest extends AbstractSniffUnitTest
26
26
public function getErrorList ()
27
27
{
28
28
return [
29
- 11 => 1 ,
30
29
12 => 1 ,
31
30
13 => 1 ,
32
31
14 => 1 ,
@@ -35,10 +34,10 @@ public function getErrorList()
35
34
17 => 1 ,
36
35
18 => 1 ,
37
36
19 => 1 ,
37
+ 20 => 1 ,
38
+ 21 => 1 ,
39
+ 22 => 1 ,
38
40
23 => 1 ,
39
- 24 => 1 ,
40
- 25 => 1 ,
41
- 26 => 1 ,
42
41
27 => 1 ,
43
42
28 => 1 ,
44
43
29 => 1 ,
@@ -47,6 +46,14 @@ public function getErrorList()
47
46
32 => 1 ,
48
47
33 => 1 ,
49
48
34 => 1 ,
49
+ 35 => 1 ,
50
+ 36 => 1 ,
51
+ 37 => 1 ,
52
+ 38 => 1 ,
53
+ 39 => 1 ,
54
+ 40 => 1 ,
55
+ 41 => 1 ,
56
+ 42 => 1 ,
50
57
];
51
58
52
59
}//end getErrorList()
You can’t perform that action at this time.
0 commit comments