Skip to content

Commit 2632099

Browse files
jrfnlkukulich
authored andcommitted
PEAR/ValidClassName: improve enum tests
Ensure that backed enum signatures are included in the tests. Note: the adjusted tests _without a space between the enum name and the colon_ will fail until PR 3534 has been merged.
1 parent d2c86ab commit 2632099

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.inc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,19 @@ trait ___ {}
6767

6868
trait Invalid__Name {}
6969

70-
enum Valid_Name {}
70+
enum Valid_Name: string {}
7171

72-
enum invalid_Name {}
72+
enum invalid_Name : String {}
7373

7474
enum invalid_name {}
7575

76-
enum Invalid_name {}
76+
enum Invalid_name: Int {}
7777

7878
enum VALID_Name {}
7979

8080
enum VALID_NAME {}
8181

82-
enum VALID_Name {}
82+
enum VALID_Name : int {}
8383

8484
enum ValidName {}
8585

0 commit comments

Comments
 (0)