Tweak test failure message from PHPUnitTask
|Reported by:||Tim Gerundt||Owned by:||mrook|
I had the problem, that a unit test from a test case had an error and a other test was incomplete.
Unfortunately shows me phing only the last message from the incomplete test and not the more important error.
This patch fix the problem by adding the functions getLastErrorMessage(), getLastIncompleteMessage() and getLastSkippedMessage() to the PHPUnitTestRunner class. The class PHPUnitTask use this functions to return the last message depending on the return code from the PHPUnitTestRunner.
Greetings, Tim Gerundt <tim at gerundt.de>