@@ -69,14 +69,14 @@ function ($token) use ($attribute, $length) {
69
69
public static function dataAttribute ()
70
70
{
71
71
return [
72
- 'class attribute ' => [
72
+ 'class attribute ' => [
73
73
'testMarker ' => '/* testAttribute */ ' ,
74
74
'length ' => 2 ,
75
75
'tokenCodes ' => [
76
76
T_STRING
77
77
],
78
78
],
79
- 'class attribute with param ' => [
79
+ 'class attribute with param ' => [
80
80
'testMarker ' => '/* testAttributeWithParams */ ' ,
81
81
'length ' => 7 ,
82
82
'tokenCodes ' => [
@@ -88,7 +88,7 @@ public static function dataAttribute()
88
88
T_CLOSE_PARENTHESIS ,
89
89
],
90
90
],
91
- 'class attribute with named param ' => [
91
+ 'class attribute with named param ' => [
92
92
'testMarker ' => '/* testAttributeWithNamedParam */ ' ,
93
93
'length ' => 10 ,
94
94
'tokenCodes ' => [
@@ -103,14 +103,14 @@ public static function dataAttribute()
103
103
T_CLOSE_PARENTHESIS ,
104
104
],
105
105
],
106
- 'function attribute ' => [
106
+ 'function attribute ' => [
107
107
'testMarker ' => '/* testAttributeOnFunction */ ' ,
108
108
'length ' => 2 ,
109
109
'tokenCodes ' => [
110
110
T_STRING
111
111
],
112
112
],
113
- 'function attribute with params ' => [
113
+ 'function attribute with params ' => [
114
114
'testMarker ' => '/* testAttributeOnFunctionWithParams */ ' ,
115
115
'length ' => 17 ,
116
116
'tokenCodes ' => [
@@ -132,7 +132,7 @@ public static function dataAttribute()
132
132
T_CLOSE_PARENTHESIS ,
133
133
],
134
134
],
135
- 'function attribute with arrow function as param ' => [
135
+ 'function attribute with arrow function as param ' => [
136
136
'testMarker ' => '/* testAttributeWithShortClosureParameter */ ' ,
137
137
'length ' => 17 ,
138
138
'tokenCodes ' => [
@@ -154,7 +154,7 @@ public static function dataAttribute()
154
154
T_CLOSE_PARENTHESIS ,
155
155
],
156
156
],
157
- 'function attribute; multiple comma separated classes ' => [
157
+ 'function attribute; multiple comma separated classes ' => [
158
158
'testMarker ' => '/* testAttributeGrouping */ ' ,
159
159
'length ' => 26 ,
160
160
'tokenCodes ' => [
@@ -185,7 +185,7 @@ public static function dataAttribute()
185
185
T_CLOSE_PARENTHESIS ,
186
186
],
187
187
],
188
- 'function attribute; multiple comma separated classes, one per line ' => [
188
+ 'function attribute; multiple comma separated classes, one per line ' => [
189
189
'testMarker ' => '/* testAttributeMultiline */ ' ,
190
190
'length ' => 31 ,
191
191
'tokenCodes ' => [
@@ -221,7 +221,46 @@ public static function dataAttribute()
221
221
T_WHITESPACE ,
222
222
],
223
223
],
224
- 'function attribute; using partially qualified and fully qualified class names ' => [
224
+ 'function attribute; multiple comma separated classes, one per line, with comments ' => [
225
+ 'testMarker ' => '/* testAttributeMultilineWithComment */ ' ,
226
+ 'length ' => 34 ,
227
+ 'tokenCodes ' => [
228
+ T_WHITESPACE ,
229
+ T_WHITESPACE ,
230
+ T_STRING ,
231
+ T_COMMA ,
232
+ T_WHITESPACE ,
233
+ T_COMMENT ,
234
+ T_WHITESPACE ,
235
+ T_STRING ,
236
+ T_OPEN_PARENTHESIS ,
237
+ T_COMMENT ,
238
+ T_WHITESPACE ,
239
+ T_CONSTANT_ENCAPSED_STRING ,
240
+ T_CLOSE_PARENTHESIS ,
241
+ T_COMMA ,
242
+ T_WHITESPACE ,
243
+ T_WHITESPACE ,
244
+ T_STRING ,
245
+ T_OPEN_PARENTHESIS ,
246
+ T_CONSTANT_ENCAPSED_STRING ,
247
+ T_COMMA ,
248
+ T_WHITESPACE ,
249
+ T_PARAM_NAME ,
250
+ T_COLON ,
251
+ T_WHITESPACE ,
252
+ T_OPEN_SHORT_ARRAY ,
253
+ T_CONSTANT_ENCAPSED_STRING ,
254
+ T_WHITESPACE ,
255
+ T_DOUBLE_ARROW ,
256
+ T_WHITESPACE ,
257
+ T_CONSTANT_ENCAPSED_STRING ,
258
+ T_CLOSE_SHORT_ARRAY ,
259
+ T_CLOSE_PARENTHESIS ,
260
+ T_WHITESPACE ,
261
+ ],
262
+ ],
263
+ 'function attribute; using partially qualified and fully qualified class names ' => [
225
264
'testMarker ' => '/* testFqcnAttribute */ ' ,
226
265
'length ' => 13 ,
227
266
'tokenCodes ' => [
0 commit comments