summaryrefslogtreecommitdiff
path: root/tests/classes/abstract_redeclare.phpt
blob: 5643cb7a61861a515a58d4c262b6a01cae7a03e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
ZE2 A method cannot be redeclared abstract
--FILE--
<?php

class pass {
	function show() {
		echo "Call to function show()\n";
	}
}

class fail extends pass {
	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 %sabstract_redeclare.php on line %d