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:
How do I uninstall phpunit in xampp?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With