Failing to generate Coverage-Report #205

digitalkaoz opened this Issue Jan 15, 2012 · 1 comment

2 participants



currently its impossible to generate a coverage report phpunit --coverage-text for the following Reason:

Fatal error: Cannot redeclare class Composer\Autoload\ClassLoader in /composer/src/Composer/Autoload/ClassLoader.php

its because the tests/bootstrap.php requires the vendor/.composer/autoload.phpand there is a ClassLoader in the same namespace defined.

What would be the best solution? to rename the ClassLoader in the generated autoload.php, move it into another namespace ?

i would provide a patch if we know how we want it.

@Seldaek Seldaek closed this in 8b1b452 Jan 15, 2012
Composer member

Fixed by excluding from phpunit config.

@digitalkaoz digitalkaoz pushed a commit to digitalkaoz/composer that referenced this issue Nov 22, 2013
@Seldaek Seldaek Fix code coverage report, fixes #205 25fd46b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment