inheritance_004.phpt 278 B

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