xref: /php-src/ext/reflection/tests/gh12908.phpt (revision 3b5986db)
1--TEST--
2GH-12908 (Show attribute name/class in ReflectionAttribute dump)
3--FILE--
4<?php
5
6#[\AllowDynamicProperties, \Foo]
7class Test {
8}
9
10print_r((new ReflectionClass(Test::class))->getAttributes());
11
12?>
13--EXPECT--
14Array
15(
16    [0] => ReflectionAttribute Object
17        (
18            [name] => AllowDynamicProperties
19        )
20
21    [1] => ReflectionAttribute Object
22        (
23            [name] => Foo
24        )
25
26)
27