tags:

views:

551

answers:

2

I would like to downgrade my installation of PHPUnit 3.4 to 3.3. I'm just not sure how to do it.

How do I install version 3.3 of PHPUnit on Ubuntu using PEAR?

A: 

I don't know if it's always possible using PEAR alone.

When I had to downgrade a package before, the old version was no longer available in the channel. I uninstalled the package I wanted to downgrade, downloaded the old version, and installed from the downloaded file.

Nikki Erwin Ramirez
+3  A: 

You need to know the exact version number you wish to downgrade to. At the time of writing, the last release you're after is 3.3.17, which can be found out by checking the appropriate PEAR channel.

To downgrade to that particular version execute two commands:

  • pear uninstall phpunit/PHPUNit
  • pear install phpunit/PHPUnit-3.3.17
etheros
Just what I needed. Thank you!
Andrew