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