Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to uninstall old version of phpunit

I've installed PHPUnit via composer by running the following command:

composer global require "phpunit/phpunit=4.8.*"

I noticed that there is an old version of phpunit(version 3.7.21) installed which comes with xampp for Windows. I'm trying to uninstall it by running the following command:

pear uninstall phpunit/PHPUnit

which fails with the error message: unknown channel "phpunit" in phpunit/PHPUnit.

When I run phpunit -v it shows the version as 3.7.21 and the command where phpunit gives the following result:

enter image description here

How do I uninstall phpunit in xampp?

like image 700
Raghav Avatar asked Apr 08 '16 22:04

Raghav


1 Answers

Somehow your PEAR environment does not know the pear.phpunit.de channel server yet has packages installed from it.

As that PEAR channel server does not exist anymore, there is no way of making it known to your PEAR environment (as pear channel-discover pear.phpunit.de will no longer work).

Looks like you have to manually delete all PHPUnit-related files that were installed using the PEAR installer.

like image 98
Sebastian Bergmann Avatar answered Sep 30 '22 12:09

Sebastian Bergmann