[pkg-php-pear] Bug#777380: phpunit --coverage* always fails
David Prévot
taffit at debian.org
Sun Feb 8 20:15:46 UTC 2015
Hi,
On Sat, Feb 07, 2015 at 03:55:06PM -0400, David Prévot wrote:
> Package: phpunit
> Calling phpunit with any of the --coverage-* option (or having coverage
> set up in a phpunit.xml file) makes it fail with a message like:
>
> PHP Fatal error: Class 'PHP_Token_OPEN_TAG' not found in /usr/share/php/PHP/Token/Stream.php on line 218
Once this one workaround (while repackaging phpunit-dbunit based on
Composer instead of the dead PEAR channel), I also stumbled on a similar
error (while repackaging phpunit-version based on Composer for the same
reason):
PHP Fatal error: Class 'Text_Template' not found in /usr/share/php/PHP/CodeCoverage/Report/HTML/Renderer/Directory.php on line 65
> Simply requiring PHP/Token/Stream/Autoload.php does the trick.
Ditto with Text/Template/Autoload.php.
> Feel free
> to reassign to php-codecoverage or php-token-stream in order to push
> this workaround in the most proper place.
(I’m happy to fix it myself or at least propose a patch in the package
where it’s needed, php-codecoverage sounds like a better place the more
I think about it).
Regards
David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-php-pear/attachments/20150208/a32bd516/attachment.sig>
More information about the pkg-php-pear
mailing list