interface_must_be_implemented.phpt 420 B

1234567891011121314151617
  1. --TEST--
  2. ZE2 An interface must be implemented
  3. --SKIPIF--
  4. <?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
  5. --FILE--
  6. <?php
  7. interface if_a {
  8. function f_a();
  9. }
  10. class derived_a implements if_a {
  11. }
  12. ?>
  13. --EXPECTF--
  14. 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