abstract_redeclare.phpt 447 B

12345678910111213141516171819
  1. --TEST--
  2. ZE2 A method cannot be redeclared abstract
  3. --FILE--
  4. <?php
  5. class pass {
  6. function show() {
  7. echo "Call to function show()\n";
  8. }
  9. }
  10. class fail extends pass {
  11. abstract function show();
  12. }
  13. echo "Done\n"; // Shouldn't be displayed
  14. ?>
  15. --EXPECTF--
  16. Fatal error: Class fail contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (fail::show) in %sabstract_redeclare.php on line %d