Ticket #263 (closed defect: fixed)
phpunit code coverage file format change
| Reported by: | duke@… | Owned by: | hans |
|---|---|---|---|
| Priority: | major | Milestone: | 2.4.0RC1 |
| Component: | phing-tasks-ext | Version: | 2.3.0 |
| Keywords: | Cc: |
Description
While playing with Phing and PHPUnit 3.3beta1 I found out that the coverage file format has been changed, thus all CoverageMerge logic in Phing breaks in many interesting ways.
Before PHPUnit 3.3beta1 the generation code looked like this: http://www.phpunit.de/browser/phpunit/branches/release/3.3/PHPUnit/Framework/TestResult.php?rev=2540#L487
Now it looks like this: http://www.phpunit.de/browser/phpunit/branches/release/3.3/PHPUnit/Framework/TestResult.php?rev=2541#L487
note the codeCoverageToBitString method.
Not sure what the correct way to resolve this is? Maybe call phpunit code to decypher the file? That would protect phing from further file format changes.
