dis-bench / src /php /php-src /Zend /tests /exceptions /exception_005.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
233 Bytes
--TEST--
Trying to throw exception of an interface
--FILE--
<?php
interface a { }
throw new a();
?>
--EXPECTF--
Fatal error: Uncaught Error: Cannot instantiate interface a in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d