1--TEST-- 2Test using an Error as the previous Throwable for an Exception 3--CREDITS-- 4Aaron Piotrowski <aaron@icicle.io> 5--FILE-- 6<?php 7throw new Exception('Exception message', 0, new Error('Error message')); 8?> 9--EXPECTF-- 10 11Fatal error: Uncaught Error: Error message in %s:%d 12Stack trace: 13#0 {main} 14 15Next Exception: Exception message in %s:%d 16Stack trace: 17#0 {main} 18 thrown in %s on line %d 19