Skip to content

file_get_contents: failed to open stream: Invalid argument #83

@geissler

Description

@geissler

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions