summaryrefslogtreecommitdiff
path: root/tests/classes/interface_instantiate.phpt
blob: 2fab5fd3da635a7e5465b507bd288870fc3cab26 (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