summaryrefslogtreecommitdiff
path: root/tests/classes/abstract_redeclare.phpt
blob: 132ab947118e54de8ae3054501bd7ae5d8e1abc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
A method cannot be redeclared abstrcat
--SKIPIF--
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
--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: Cannot make non abstract method pass::show() abstract in class fail in %s on line %d