gh9409.phpt 475 B

123456789101112131415161718192021222324
  1. --TEST--
  2. GH-9409: Private method is incorrectly dumped as "overwrites"
  3. --FILE--
  4. <?php
  5. class A {
  6. private function privateMethod() {}
  7. }
  8. class C extends A {
  9. private function privateMethod() {}
  10. }
  11. echo (new ReflectionClass('A'))->getMethod('privateMethod');
  12. echo (new ReflectionClass('C'))->getMethod('privateMethod');
  13. ?>
  14. --EXPECTF--
  15. Method [ <user> private method privateMethod ] {
  16. @@ %s %d - %d
  17. }
  18. Method [ <user> private method privateMethod ] {
  19. @@ %s %d - %d
  20. }