dis-bench / src /php /php-src /tests /classes /abstract_redeclare.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
404 Bytes
--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 declares abstract method show() and must therefore be declared abstract in %sabstract_redeclare.php on line %d