[pkg-php-pear] Bug#610676: My version of php-codecoverage

Luis Uribe acme at eviled.org
Thu Apr 19 20:33:16 UTC 2012


On Thu, Apr 19, 2012 at 04:19:59PM +0800, Thomas Goirand wrote:
> Hi!
> I have uploaded to Alioth a new version of the php-codecoverage package.
> Please checkout the Git and let me know what you think. I hope you will
> not take it as a take-over of the packaging, but more as a team work.
> There was issues in the package from Arthur, and I believe that my
> package is better. Of course, I'm open to any suggestion and improvement.

I agree with the package, mine is almost similar (but you upload it first).

> If you guys agree with the package and don't see any issue, I'll upload
> once the dependencies are accepted in SID by ftp-masters.

I check the package at my laptop and upload some changes to Alioth:

+ Fixed copyright file (There was a lintian warning)
+ Add a patch for php-token-stream PATH
+ Adding php5-xdebug to Depends:

I try to run a simple example:

acme at volatile /tmp $ cat foo.php 
require 'PHP/CodeCoverage/Autoload.php';

$coverage = new PHP_CodeCoverage;
//$coverage->start('<name of test>');

// ...



But i've got this error:

acme at volatile /tmp $ php -f foo.php 
PHP Fatal error:  Uncaught exception 'PHP_CodeCoverage_Exception' with message 'Xdebug is not loaded.' in /usr/share/php/PHP/CodeCoverage/Driver/Xdebug.php:67
Stack trace:
#0 /usr/share/php/PHP/CodeCoverage.php(119): PHP_CodeCoverage_Driver_Xdebug->__construct()
#1 /tmp/foo.php(4): PHP_CodeCoverage->__construct()
#2 {main}
  thrown in /usr/share/php/PHP/CodeCoverage/Driver/Xdebug.php on line 67

However i can't install php5-xdebug at this machine:

root at volatile:~# apt-get install php5-xdebug
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 php5-xdebug : Depends: phpapi-20100525+lfs
E: Broken packages

I will try it on a clean sid machine and let you know the results. Don't know 
if xdebug is broken or is just my machine.

> Luis, do you plan on making more phpunit packages? It'd be really great
> if you do! Arthur, do are you going to make more phpunit packages as well?

Sure! I don't have much time this month but i will help as much as i can.

> Once we get all these into SID, I think it'd be a good idea to start
> having unit tests for the PEAR packages that support it. I'm currently
> unsure how to do it, but that's certainly a very good quality insurance.

Like running phpunit tests on a "clean" sid installation? Sounds good to me.


Luis Uribe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-php-pear/attachments/20120419/f3cc980b/attachment.pgp>

More information about the pkg-php-pear mailing list