sebastianbergmann/php-code-coverage — Issue #73: html reports broken
Author: quipo
Created: 2011-10-15 15:48:45+00:00
State: open

After upgrading to PHPUnit-3.6.0RC4 and PHP_CodeCoverage-1.1.0RC7 (up from v.3.5.15 and v.1.0.5 respectively), something broke in the code coverage html reports:

I used to call phpunit this way:

```
phpunit --log-junit target/logs/junit.xml --coverage-clover target/logs/clover.xml --configuration src/tests/phpunit.xml --coverage-html target/coverage/ src/tests/
```

the result now is:

```
WARNING: fopen(/..../target/coverage): failed to open stream: Is a directory in /usr/share/php/PEAR/PHPUnit/Util/Printer.php at line: 106
NOTICE: Undefined variable: title in /usr/share/php/PEAR/PHPUnit/TextUI/TestRunner.php at line: 375
```

and nothing is saved in the output dir (target/coverage/).

Moving all the cli parameters (except for --configuration) to the phpunit.xml file, within the tag, seems to work fine.
For some projects, I still get this WARNING:

```
[exec] WARNING: Invalid argument supplied for foreach() in /usr/share/php/PEAR/PHP/CodeCoverage/Report/HTML/Renderer/File.php at line: 352
```

but it doesn't affect the results.