You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
497 B

  1. --TEST--
  2. ReflectionObject::export() - ensure dynamic property with same name as inherited private property is shown.
  3. --FILE--
  4. <?php
  5. class C {
  6. private $p = 1;
  7. }
  8. class D extends C{
  9. }
  10. $Obj = new D;
  11. $Obj->p = 'value';
  12. ReflectionObject::export($Obj)
  13. ?>
  14. --EXPECTF--
  15. Object of class [ <user> class D extends C ] {
  16. @@ %s 6-7
  17. - Constants [0] {
  18. }
  19. - Static properties [0] {
  20. }
  21. - Static methods [0] {
  22. }
  23. - Properties [0] {
  24. }
  25. - Dynamic properties [0] {
  26. }
  27. - Methods [0] {
  28. }
  29. }