Ticket #6 (closed defect: fixed)
I couldnot create a correct coverage-report.
| Reported by: | norman@… | Owned by: | mrook |
|---|---|---|---|
| Priority: | major | Milestone: | 2.2.0 |
| Component: | Version: | 2.2.0RC1 | |
| Keywords: | Cc: |
Description
[2.2.0RC1]
Hi folks!
Got always a
PHP Error Phing::inlcude_once(\\myLogger.php):
failed to open stream:
Invalid argument [line 860 of D:\PHP\phing-2.2.0RC1\classes\phing\Phing.php]
Two thinks might be helpful: First, the path of the file is myLogger.php is D:\PHP\OpenDocumentPHP\poc\src\myLogger.php5.
Secound, the error occurs when phing executes this part of the build.xml:
<coverage-report outfile="reports/coverage.xml"> <report todir="reports/coverage" styledir="etc"/> </coverage-report>
Thanks in advance,
Norman.
Attachments
Change History
comment:2 Changed 6 years ago by norman@…
- Version changed from 2.1.1 to 2.2.0RC1
- Summary changed from Can not create coverage-report. to I couldnot create a correct coverage-report.
I checked out the latest version of (SVN trunk). It worked much better. But I get:
[coverage-report] Transforming coverage report [PHP Error] Invalid argument supplied for foreach() [line 231 of D:\PHP\Phing-SVN\trunk\classes\phing\tasks\ext\coverage\CoverageReportTask.php]
And I am not shure, that the coverage reports are correct. Because I am not sure, that the percentages given at the top have anything to do with the code shown later on the coverage reports.
Thanks
Norman
comment:3 Changed 6 years ago by mrook
I've once again committed a series of fixes, so please check the latest SVN version.
Also, the "foreach" bug you were experiencing indicates there were no classes in that particular sourcefile. This no longer triggers an error, but is not supported by the code coverage tasks.
comment:4 Changed 6 years ago by norman@…
- Status changed from assigned to closed
- Resolution set to fixed
That works fine for me.
There is still an error message, but this is my fault, thought. If not, I will make a new ticket. I think this one is closed now. Thanks for the good work! I, as a former Java developer, need such thing like PHing!
Norman

Can you check your project using the latest version (SVN trunk) of Phing? I've just committed some additional code that should help fix this issue.