interface_must_be_implemented.phpt 314 B

123456789101112131415
  1. --TEST--
  2. ZE2 An interface must be implemented
  3. --FILE--
  4. <?php
  5. interface if_a {
  6. function f_a();
  7. }
  8. class derived_a implements if_a {
  9. }
  10. ?>
  11. --EXPECTF--
  12. Fatal error: Class derived_a contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (if_a::f_a) in %s on line %d