dis-bench / src /php /php-src /tests /classes /abstract_derived.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
326 Bytes
--TEST--
ZE2 A derived class with an abstract method must be abstract
--FILE--
<?php
class base {
}
class derived extends base {
abstract function show();
}
?>
===DONE===
--EXPECTF--
Fatal error: Class derived declares abstract method show() and must therefore be declared abstract in %sabstract_derived.php on line %d