Opened 7 years ago

Closed 6 years ago

#608 closed enhancement (fixed)

Tweak test failure message from PHPUnitTask

Reported by: Tim Gerundt Owned by: mrook
Priority: major Milestone: 2.4.6
Component: phing-tasks-phpunit Version: 2.4.4
Keywords: Cc:


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>

Attachments (1)

tweak-test-failure-message-from-PHPUnitTask.patch (3.9 KB) - added by Tim Gerundt 7 years ago.
patch for ticket #608

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by Tim Gerundt

patch for ticket #608

comment:1 Changed 7 years ago by mrook

  • Milestone changed from TBD to 2.4.6

comment:2 Changed 6 years ago by mrook

(In [1093]) Refs #608 - also remember last incomplete / skipped messages (patch by Tim Gerundt)

comment:3 Changed 6 years ago by mrook

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

as closed The owner will remain mrook.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.