7

I want to install PHPUnit 3.7 on my windows server. I followed the 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 should find an upgrade somewhere?

Community
  • 1
  • 1
user385762
  • 581
  • 2
  • 6
  • 16

4 Answers4

2

You probably want the --force (or -f) option on pear install:

pear install -a -f phpunit/PHPUnit

I was running into problems with PHPUnit until I found this post

Community
  • 1
  • 1
Brad Orego
  • 2,976
  • 3
  • 18
  • 24
1

Try this:

pear upgrade-all
pear upgrade phpunit/PHPUnit
Theodore R. Smith
  • 21,848
  • 12
  • 65
  • 91
0

I tried this and succeeded.

pear upgrade --alldeps phpunit/phpunit

If the above doesn't work for you, try the below:

pear upgrade --alldeps --force phpunit/phpunit
Beniston
  • 542
  • 1
  • 8
  • 17
0

Did you by any chance cleared the cache?

pear clear-cache

and then update the channels, and install phpUnit. If that fails, clear the cache, uninstall completly phpUnit, and then install it again.

taxicala
  • 21,408
  • 7
  • 37
  • 66