summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/bug41884.phpt
blob: f8c0a0a2bce451306d26971232f60d7a276bbea1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--TEST--
Bug #41884 (ReflectionClass::getDefaultProperties() does not handle static attributes)
--FILE--
<?php

class Foo
{
	protected static $fooStatic = 'foo';
	protected $foo = 'foo';
}

$class = new ReflectionClass('Foo');

var_dump($class->getDefaultProperties());

echo "Done\n";
?>
--EXPECTF--	
array(2) {
  ["fooStatic"]=>
  string(3) "foo"
  ["foo"]=>
  string(3) "foo"
}
Done