Annotation of embedaddon/php/ext/reflection/tests/bug41884.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #41884 (ReflectionClass::getDefaultProperties() does not handle static attributes)
3: --FILE--
4: <?php
5:
6: class Foo
7: {
8: protected static $fooStatic = 'foo';
9: protected $foo = 'foo';
10: }
11:
12: $class = new ReflectionClass('Foo');
13:
14: var_dump($class->getDefaultProperties());
15:
16: echo "Done\n";
17: ?>
18: --EXPECTF--
19: array(2) {
20: ["fooStatic"]=>
21: string(3) "foo"
22: ["foo"]=>
23: string(3) "foo"
24: }
25: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>