summaryrefslogtreecommitdiff
path: root/tests/classes/abstract_not_declared.phpt
blob: 8c2d880150c15a2d950ac05acdca39f2fd92f17c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--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