[pkg-php-pear] Bug#684280: phpunit: Code coverage report fails because highcharts.js is missing

Cyril Bouthors cyb at debian.org
Wed Aug 8 12:11:03 UTC 2012


Package: phpunit
Version: 3.6.10-1
Severity: important

Code coverage report stopped working after an upgrade to wheezy.

Here is a simple way to reproduce:

$ cat foo.php 
<?php
class foo {
}
?>
$ phpunit --coverage-html report foo.php 
PHPUnit 3.6.10 by Sebastian Bergmann.



Time: 0 seconds, Memory: 2.50Mb

OK (0 tests, 0 assertions)

Generating code coverage report, this may take a moment.PHP Warning:  copy(/usr/share/php/PHP/CodeCoverage/Report/HTML/Renderer/Template/highcharts.js): failed to open stream: No such file or directory in /usr/share/php/PHP/CodeCoverage/Report/HTML.php on line 206
PHP Stack trace:
PHP   1. {main}() /usr/bin/phpunit:0
PHP   2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:46
PHP   3. PHPUnit_TextUI_Command->run() /usr/share/php/PHPUnit/TextUI/Command.php:130
PHP   4. PHPUnit_TextUI_TestRunner->doRun() /usr/share/php/PHPUnit/TextUI/Command.php:192
PHP   5. PHP_CodeCoverage_Report_HTML->process() /usr/share/php/PHPUnit/TextUI/TestRunner.php:373
PHP   6. PHP_CodeCoverage_Report_HTML->copyFiles() /usr/share/php/PHP/CodeCoverage/Report/HTML.php:184
PHP   7. copy() /usr/share/php/PHP/CodeCoverage/Report/HTML.php:206

Can you include highcharts.js in the Debian package?

Regards,

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages phpunit depends on:
ii  pear-phpunit-channel  1.1-1
ii  php-codecoverage      1.1.2+dfsg1-2
ii  php-file-iterator     1.3.1-2
ii  php-pear              5.4.4-2
ii  php-symfony-yaml      1.0.6-1
ii  php-text-template     1.1.1-2
ii  php-timer             1.0.2-2
ii  php5-cli              5.4.4-2
ii  phpunit-mock-object   1.1.1-2

Versions of packages phpunit recommends:
ii  php-invoker       1.1.0-1
ii  php-token-stream  1.1.3-2
ii  phpunit-story     1.0.0-1

Versions of packages phpunit suggests:
pn  phpunit-dbunit    <none>
ii  phpunit-selenium  1.2.6-2

-- no debconf information   

-- 
 ,''`.
: :' :      Cyril Bouthors
`. `'         Debian.org
  `-



More information about the pkg-php-pear mailing list