summaryrefslogtreecommitdiff
path: root/Zend/tests/throwable_001.phpt
blob: 306ed137840a2a36c0cc4577c0ea0fe363312e24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Test using an Error as the previous Throwable for an Exception
--CREDITS--
Aaron Piotrowski <aaron@icicle.io>
--FILE--
<?php
throw new Exception('Exception message', 0, new Error('Error message'));
?>
--EXPECTF--
Fatal error: Uncaught Error: Error message in %s:%d
Stack trace:
#0 {main}

Next Exception: Exception message in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d