Ticket #363 (closed defect: fixed)
PHPUnit task fails with formatter type 'xml'
| Reported by: | ironsidevsquincy@… | Owned by: | mrook |
|---|---|---|---|
| Priority: | major | Milestone: | 2.4.0RC2 |
| Component: | phing-tasks-phpunit | Version: | 2.3.3 |
| Keywords: | Cc: |
Description
PHPUnit-3.4.0, Phing-2.3.3
Running a a phpunit task with, for example,
<formatter todir="logs" type="xml"/>
over a phpunit test returns
[PHP Error] require_once(PHPUnit/Util/Log/XML.php): failed to open stream: No such file or directory [line 22 of /usr/local/includes/php/PEAR/phing/tasks/ext/phpunit/phpunit3/XMLPHPUnit3ResultFormatter.php]
Looks like XML.php was removed from phpunit-3.4, in favour of JUnit.php, but the phing task hasn;t been update appropriately
Attachments
Change History
comment:1 Changed 2 years ago by mrook
- Status changed from new to assigned
- Milestone set to 2.4.0RC2
comment:3 Changed 2 years ago by mrook
- Status changed from assigned to closed
- Resolution set to fixed
This bug has been fixed in the SVN tree, revision r592.
Thank you for the report, and for helping us make Phing better!
comment:4 Changed 21 months ago by anonymous
What is the formatter type that I need to use to get the xml format results.
comment:5 Changed 20 months ago by anonymous
I seem to be having this same problem but with Phing 2.4.1 and PHPUnit 3.2.16 For me the error is: [PHP Error] require_once(PHPUnit/Util/Log/JUnit.php): failed to open stream: No such file or directory [line 22 of /usr/share/php/phing/tasks/ext/phpunit/formatter/XMLPHPUnitResultFormatter.php]
