-
-
Notifications
You must be signed in to change notification settings - Fork 384
Closed
Description
Under Windows 7 with PHPUnit 3.6.5 i have the following "configuration.xml"
<logging>
<log type="coverage-html" target="G:/0.5.1/Coverage"/>
<log type="coverage-clover" target="G:/0.5.1/Coverage/clover.xml"/>
</logging>
When running PHPUnit within NetBeans or on the Windows Console the following error is logged (the tests are running properly):
file_get_contents(/G:/0.5.1/Src/Script/Model/Command/Command_Abstract.php): failed to open stream: Invalid argument Datei: C:\xampp\php\PEAR\PHP\CodeCoverage\Report\HTML\Renderer\File.php Zeile: 475
I have added in the file "PHP_CodeCoverage_Report_Node" in line 144/145 in function "getPath" the following:
$this->path = preg_replace('/^\/([A-z]:)/', '$1', $this->path);
Now the error does not appear anymore, Netbeans is showing the CodeCoverage again and the clover.xml is greater than before, but HTML CodeCoverage still does not work.
Edit by @edorian: Fixed markup
Metadata
Metadata
Assignees
Labels
No labels