bug41884.phpt 390 B

12345678910111213141516171819202122232425
  1. --TEST--
  2. Bug #41884 (ReflectionClass::getDefaultProperties() does not handle static attributes)
  3. --FILE--
  4. <?php
  5. class Foo
  6. {
  7. protected static $fooStatic = 'foo';
  8. protected $foo = 'foo';
  9. }
  10. $class = new ReflectionClass('Foo');
  11. var_dump($class->getDefaultProperties());
  12. echo "Done\n";
  13. ?>
  14. --EXPECT--
  15. array(2) {
  16. ["fooStatic"]=>
  17. string(3) "foo"
  18. ["foo"]=>
  19. string(3) "foo"
  20. }
  21. Done