summaryrefslogtreecommitdiff
path: root/Zend/tests/throwable_002.phpt
blob: f51969c6c5f24f28b179f70f724b8c2d04dd7861 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--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