inheritance_003.phpt 278 B

1234567891011121314151617181920
  1. --TEST--
  2. ZE2 method inheritance without interfaces
  3. --FILE--
  4. <?php
  5. class A
  6. {
  7. function f($x) {}
  8. }
  9. class B extends A
  10. {
  11. function f() {}
  12. }
  13. ?>
  14. ===DONE===
  15. --EXPECTF--
  16. Warning: Declaration of B::f() should be compatible with A::f($x) in %sinheritance_003.php on line %d
  17. ===DONE===