Refresh phpunit windows

I want to install PHPUnit 3.7 on my windows server. I followed various instructions here and ended up with PHPUnit 3.4.1. When I try to install it again using:

pear update channels pear install --alldeps phpunit/PHPUnit 

I get:

 phpunit/PHPUnit is already installed and is the same as the released version 3.4.15 install failed 

I know that 3.4.15 is not the latest version ... How can I convince PEAR that it will find an update somewhere?

+6
source share
4 answers

You probably need the -force (or -f) option to install the pear:

pear install -a -f phpunit/PHPUnit

I was having problems with PHPUnit until I found this post

+2
source

Try the following:

 pear upgrade-all pear upgrade phpunit/PHPUnit 
+1
source

I tried this and succeeded.

 pear upgrade --alldeps phpunit/phpunit 

If the above does not work for you, try the following:

 pear upgrade --alldeps --force phpunit/phpunit 
0
source

Did you accidentally delete the cache?

 pear clear-cache 

and then update the channels and install phpUnit. If this fails, clear the cache, completely remove phpUnit, and then install it again.

0
source

Source: https://habr.com/ru/post/905908/


All Articles