abstract_derived.phpt 496 B

1234567891011121314151617181920
  1. --TEST--
  2. ZE2 A derived class with an abstract method must be abstract
  3. --SKIPIF--
  4. <?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
  5. --FILE--
  6. <?php
  7. class base {
  8. }
  9. class derived extends base {
  10. abstract function show();
  11. }
  12. ?>
  13. ===DONE===
  14. <?php exit(0); ?>
  15. --EXPECTF--
  16. Fatal error: Class derived contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (derived::show) in %sabstract_derived.php on line %d