sebastianbergmann/phpunit — pull request #679 by till (2012-10-04 16:22:18+00:00)
Title: Topics/support thriftexception

This PR adds support for `\TException` to PHPUnit.

The obstacle is that an exception based `\TException` does a lot of customization inside the code. The biggest drawback is that it doesn't seem to use `\Exception::$code` and `\Exception::$message` but customized variables which are set arbitrarily (depending on the error and the data available).

I don't think Thrift will change this any time soon since the code is from a generator. This is a pretty enterprisey feature but it's still simple enough – still hope it gets accepted.

I ran the test suite:

$ ./phpunit.php Tests/Framework/FailureTest.php
PHPUnit 3.7.1-47-gf07b3de by Sebastian Bergmann.

The Xdebug extension is not loaded. No code coverage will be generated.

.

Time: 1 second, Memory: 2.75Mb

OK (1 test, 2 assertions)