php-src/tests/classes/abstract_not_declared.phpt
2017-01-30 22:50:25 +01:00

14 lines
328 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