summaryrefslogtreecommitdiff
path: root/tests/classes/interface_and_extends.phpt
blob: 8bb1ec05f1031ec6cc52dbed7ecee7da0edda25b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--TEST--
ZE2 a class cannot extend an interface
--FILE--
<?php

interface Test
{
	function show();
}

class Tester extends Test
{
	function show() {
		echo __METHOD__ . "\n";
	}
}

$o = new Tester;
$o->show();

?>
===DONE===
--EXPECTF--
Fatal error: Class Tester cannot extend from interface Test in %sinterface_and_extends.php on line %d