php-src/tests/classes/abstract_redeclare.phpt
2020-02-03 22:52:20 +01:00

20 lines
447 B
PHP

--TEST--
ZE2 A method cannot be redeclared abstract
--FILE--
<?php
class pass {
function show() {
echo "Call to function show()\n";
}
}
class fail extends pass {
abstract function show();
}
echo "Done\n"; // Shouldn't be displayed
?>
--EXPECTF--
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