summaryrefslogtreecommitdiff
path: root/Zend/tests/exception_005.phpt
blob: e52b907ac3be6a9a3c8c88d3f1ffe36882cb4487 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Trying to throw exception of an interface
--FILE--
<?php

interface a { }

throw new a();

?>
--EXPECTF--
Fatal error: Uncaught exception 'EngineException' with message 'Cannot instantiate interface a' in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d