inheritance_008.phpt 310 B

12345678910111213141516
  1. --TEST--
  2. Ensure private methods with the same name are not checked for inheritance rules - static
  3. --FILE--
  4. <?php
  5. class A {
  6. static private function foo() { }
  7. private function bar() {}
  8. }
  9. class B extends A {
  10. private function foo() {}
  11. static private function bar() {}
  12. }
  13. echo 'OK';
  14. ?>
  15. --EXPECT--
  16. OK