sebastianbergmann/phpunit — pull request #531 by psemuu (2012-03-28 08:48:26+00:00)
Title: Added support for nested exceptions

This commit fixes the bug in PHPUnit_Framework_Error and allows throwing a new Exception (with a modified message, which is necessary for taking screenshots in phpunit-selenium) while keeping the initial trace (by means of the nested exception). Please check the issues below for more information. As I wrote in there I am willing to adjust the code to work with PHP < 5.3.

This pull request is connected with issues:
#471
#470
https://github.com/sebastianbergmann/phpunit-selenium/issues/84