summaryrefslogtreecommitdiff
path: root/tests/classes/abstract_derived.phpt
blob: 21f8fd87885afab0db458d2de4ad76fd1f9fbf01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
ZE2 A derived class with an abstract method must be abstract
--FILE--
<?php

class base {
}

class derived extends base {
	abstract function show();
}

?>
===DONE===
<?php exit(0); ?>
--EXPECTF--

Fatal error: Class derived contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (derived::show) in %sabstract_derived.php on line %d