@@ -47,18 +47,18 @@ public function testEnumCases($testMarker)
47
47
*
48
48
* @see testEnumCases()
49
49
*
50
- * @return array
50
+ * @return array<string, array<string>>
51
51
*/
52
52
public static function dataEnumCases ()
53
53
{
54
54
return [
55
- ['/* testPureEnumCase */ ' ],
56
- ['/* testBackingIntegerEnumCase */ ' ],
57
- ['/* testBackingStringEnumCase */ ' ],
58
- ['/* testEnumCaseInComplexEnum */ ' ],
59
- ['/* testEnumCaseIsCaseInsensitive */ ' ],
60
- ['/* testEnumCaseAfterSwitch */ ' ],
61
- ['/* testEnumCaseAfterSwitchWithEndSwitch */ ' ],
55
+ ' enum case, no value ' => ['/* testPureEnumCase */ ' ],
56
+ ' enum case, integer value ' => ['/* testBackingIntegerEnumCase */ ' ],
57
+ ' enum case, string value ' => ['/* testBackingStringEnumCase */ ' ],
58
+ ' enum case, integer value in more complex enum ' => ['/* testEnumCaseInComplexEnum */ ' ],
59
+ ' enum case, keyword in mixed case ' => ['/* testEnumCaseIsCaseInsensitive */ ' ],
60
+ ' enum case, after switch statement ' => ['/* testEnumCaseAfterSwitch */ ' ],
61
+ ' enum case, after switch statement using alternative syntax ' => ['/* testEnumCaseAfterSwitchWithEndSwitch */ ' ],
62
62
];
63
63
64
64
}//end dataEnumCases()
@@ -96,18 +96,18 @@ public function testNotEnumCases($testMarker)
96
96
*
97
97
* @see testNotEnumCases()
98
98
*
99
- * @return array
99
+ * @return array<string, array<string>>
100
100
*/
101
101
public static function dataNotEnumCases ()
102
102
{
103
103
return [
104
- ['/* testCaseWithSemicolonIsNotEnumCase */ ' ],
105
- ['/* testCaseWithConstantIsNotEnumCase */ ' ],
106
- ['/* testCaseWithConstantAndIdenticalIsNotEnumCase */ ' ],
107
- ['/* testCaseWithAssigmentToConstantIsNotEnumCase */ ' ],
108
- ['/* testIsNotEnumCaseIsCaseInsensitive */ ' ],
109
- ['/* testCaseInSwitchWhenCreatingEnumInSwitch1 */ ' ],
110
- ['/* testCaseInSwitchWhenCreatingEnumInSwitch2 */ ' ],
104
+ ' switch case with constant, semicolon condition end ' => ['/* testCaseWithSemicolonIsNotEnumCase */ ' ],
105
+ ' switch case with constant, colon condition end ' => ['/* testCaseWithConstantIsNotEnumCase */ ' ],
106
+ ' switch case with constant, comparison ' => ['/* testCaseWithConstantAndIdenticalIsNotEnumCase */ ' ],
107
+ ' switch case with constant, assignment ' => ['/* testCaseWithAssigmentToConstantIsNotEnumCase */ ' ],
108
+ ' switch case with constant, keyword in mixed case ' => ['/* testIsNotEnumCaseIsCaseInsensitive */ ' ],
109
+ ' switch case, body in curlies declares enum ' => ['/* testCaseInSwitchWhenCreatingEnumInSwitch1 */ ' ],
110
+ ' switch case, body after semicolon declares enum ' => ['/* testCaseInSwitchWhenCreatingEnumInSwitch2 */ ' ],
111
111
];
112
112
113
113
}//end dataNotEnumCases()
@@ -140,15 +140,18 @@ public function testKeywordAsEnumCaseNameShouldBeString($testMarker)
140
140
*
141
141
* @see testKeywordAsEnumCaseNameShouldBeString()
142
142
*
143
- * @return array
143
+ * @return array<string, array<string>>
144
144
*/
145
145
public static function dataKeywordAsEnumCaseNameShouldBeString ()
146
146
{
147
147
return [
148
- ['/* testKeywordAsEnumCaseNameShouldBeString1 */ ' ],
149
- ['/* testKeywordAsEnumCaseNameShouldBeString2 */ ' ],
150
- ['/* testKeywordAsEnumCaseNameShouldBeString3 */ ' ],
151
- ['/* testKeywordAsEnumCaseNameShouldBeString4 */ ' ],
148
+ '"interface" as case name ' => ['/* testKeywordAsEnumCaseNameShouldBeString1 */ ' ],
149
+ '"trait" as case name ' => ['/* testKeywordAsEnumCaseNameShouldBeString2 */ ' ],
150
+ '"enum" as case name ' => ['/* testKeywordAsEnumCaseNameShouldBeString3 */ ' ],
151
+ '"function" as case name ' => ['/* testKeywordAsEnumCaseNameShouldBeString4 */ ' ],
152
+ '"false" as case name ' => ['/* testKeywordAsEnumCaseNameShouldBeString5 */ ' ],
153
+ '"default" as case name ' => ['/* testKeywordAsEnumCaseNameShouldBeString6 */ ' ],
154
+ '"array" as case name ' => ['/* testKeywordAsEnumCaseNameShouldBeString7 */ ' ],
152
155
];
153
156
154
157
}//end dataKeywordAsEnumCaseNameShouldBeString()
0 commit comments