@@ -69,14 +69,14 @@ function ($token) use ($attribute, $length) {
6969 public static function dataAttribute ()
7070 {
7171 return [
72- 'class attribute ' => [
72+ 'class attribute ' => [
7373 'testMarker ' => '/* testAttribute */ ' ,
7474 'length ' => 2 ,
7575 'tokenCodes ' => [
7676 T_STRING
7777 ],
7878 ],
79- 'class attribute with param ' => [
79+ 'class attribute with param ' => [
8080 'testMarker ' => '/* testAttributeWithParams */ ' ,
8181 'length ' => 7 ,
8282 'tokenCodes ' => [
@@ -88,7 +88,7 @@ public static function dataAttribute()
8888 T_CLOSE_PARENTHESIS ,
8989 ],
9090 ],
91- 'class attribute with named param ' => [
91+ 'class attribute with named param ' => [
9292 'testMarker ' => '/* testAttributeWithNamedParam */ ' ,
9393 'length ' => 10 ,
9494 'tokenCodes ' => [
@@ -103,14 +103,14 @@ public static function dataAttribute()
103103 T_CLOSE_PARENTHESIS ,
104104 ],
105105 ],
106- 'function attribute ' => [
106+ 'function attribute ' => [
107107 'testMarker ' => '/* testAttributeOnFunction */ ' ,
108108 'length ' => 2 ,
109109 'tokenCodes ' => [
110110 T_STRING
111111 ],
112112 ],
113- 'function attribute with params ' => [
113+ 'function attribute with params ' => [
114114 'testMarker ' => '/* testAttributeOnFunctionWithParams */ ' ,
115115 'length ' => 17 ,
116116 'tokenCodes ' => [
@@ -132,7 +132,7 @@ public static function dataAttribute()
132132 T_CLOSE_PARENTHESIS ,
133133 ],
134134 ],
135- 'function attribute with arrow function as param ' => [
135+ 'function attribute with arrow function as param ' => [
136136 'testMarker ' => '/* testAttributeWithShortClosureParameter */ ' ,
137137 'length ' => 17 ,
138138 'tokenCodes ' => [
@@ -154,7 +154,7 @@ public static function dataAttribute()
154154 T_CLOSE_PARENTHESIS ,
155155 ],
156156 ],
157- 'function attribute; multiple comma separated classes ' => [
157+ 'function attribute; multiple comma separated classes ' => [
158158 'testMarker ' => '/* testAttributeGrouping */ ' ,
159159 'length ' => 26 ,
160160 'tokenCodes ' => [
@@ -185,7 +185,7 @@ public static function dataAttribute()
185185 T_CLOSE_PARENTHESIS ,
186186 ],
187187 ],
188- 'function attribute; multiple comma separated classes, one per line ' => [
188+ 'function attribute; multiple comma separated classes, one per line ' => [
189189 'testMarker ' => '/* testAttributeMultiline */ ' ,
190190 'length ' => 31 ,
191191 'tokenCodes ' => [
@@ -221,7 +221,46 @@ public static function dataAttribute()
221221 T_WHITESPACE ,
222222 ],
223223 ],
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 ' => [
225264 'testMarker ' => '/* testFqcnAttribute */ ' ,
226265 'length ' => 13 ,
227266 'tokenCodes ' => [
0 commit comments