xref: /PHP-7.0/Zend/tests/exception_005.phpt (revision e97d5fab)
1--TEST--
2Trying to throw exception of an interface
3--FILE--
4<?php
5
6interface a { }
7
8throw new a();
9
10?>
11--EXPECTF--
12Fatal error: Uncaught Error: Cannot instantiate interface a in %s:%d
13Stack trace:
14#0 {main}
15  thrown in %s on line %d
16