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

13 lines
331 B
PHP

--TEST--
ZE2 An abstract class must be declared abstract
--FILE--
<?php
class fail {
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 %s on line %d