sebastianbergmann/php-code-coverage — Issue #83: file_get_contents: failed to open stream: Invalid argument
Author: geissler
Created: 2011-12-19 10:46:35+00:00
State: open

Under Windows 7 with PHPUnit 3.6.5 i have the following "configuration.xml"

\
\
\
\

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.