sebastianbergmann/phpunit — pull request #571 by matheusd (2012-05-18 14:30:50+00:00)
Title: Printing cause of exception when present

On php >= 5.3, exceptions may have a previous cause. This allows exception chaining, by catching, modifying and throwing a (new) exception.

This is usefull in tests where you can write a TestCase base class for a set of tests, override onNotSuccessfulTest() to do some additional processing (throwing a new exception at the end) and at the UI you can see the stack trace of both the new processed exception and the original one.

Hope this makes it clear enough the purpose of this change (it's my first ever pull request on github!).