php-src/Zend/tests/throwable_002.phpt
2015-06-15 01:47:34 -05:00

19 lines
391 B
PHP

--TEST--
Test using an Exception as the previous Throwable for an Error
--CREDITS--
Aaron Piotrowski <aaron@icicle.io>
--FILE--
<?php
throw new Error('Error message', 0, new Exception('Exception message'));
?>
--EXPECTF--
Fatal error: Uncaught Exception: Exception message in %s:%d
Stack trace:
#0 {main}
Next Error: Error message in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d