1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/Zend/tests/throwable_002.phpt
Aaron Piotrowski 103bf7eda0 Add Throwable tests
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