File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,10 @@ function single_attribute_on_parameter_test(#[ParamAttribute] int $param) {}
60
60
/* testMultipleAttributesOnParameter */
61
61
function multiple_attributes_on_parameter_test (#[ParamAttribute, AttributeWithParams(/* another comment */ 'foo ' )] int $ param ) {}
62
62
63
+ /* testFqcnAttribute */
64
+ #[Boo \QualifiedName, \Foo \FullyQualifiedName('foo ' )]
65
+ function fqcn_attrebute_test () {}
66
+
63
67
/* testMultilineAttributesOnParameter */
64
68
function multiline_attributes_on_parameter_test (#[
65
69
AttributeWithParams(
Original file line number Diff line number Diff line change 10
10
namespace PHP_CodeSniffer \Tests \Core \Tokenizer ;
11
11
12
12
use PHP_CodeSniffer \Tests \Core \AbstractMethodUnitTest ;
13
+ use PHP_CodeSniffer \Util \Tokens ;
13
14
14
15
class AttributesTest extends AbstractMethodUnitTest
15
16
{
@@ -217,6 +218,24 @@ public function dataAttribute()
217
218
T_WHITESPACE ,
218
219
],
219
220
],
221
+ [
222
+ '/* testFqcnAttribute */ ' ,
223
+ 13 ,
224
+ [
225
+ T_STRING ,
226
+ T_NS_SEPARATOR ,
227
+ T_STRING ,
228
+ T_COMMA ,
229
+ T_WHITESPACE ,
230
+ T_NS_SEPARATOR ,
231
+ T_STRING ,
232
+ T_NS_SEPARATOR ,
233
+ T_STRING ,
234
+ T_OPEN_PARENTHESIS ,
235
+ T_CONSTANT_ENCAPSED_STRING ,
236
+ T_CLOSE_PARENTHESIS ,
237
+ ],
238
+ ],
220
239
];
221
240
222
241
}//end dataAttribute()
You can’t perform that action at this time.
0 commit comments