summaryrefslogtreecommitdiff
path: root/tests/classes/interface_instantiate.phpt
blob: 04b0e2970128f93d398ff4efba439a7a06dea0c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
ZE2 An interface cannot be instantiated
--FILE--
<?php

interface if_a {
	function f_a();
}

$t = new if_a();

?>
--EXPECTF--
Fatal error: Uncaught Error: Cannot instantiate interface if_a in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d