4

I globally installed PHPUnit 5.1 using the PHAR:

wget https://phar.phpunit.de/phpunit.phar
chmod +x phpunit.phar
sudo mv phpunit.phar /usr/local/bin/phpunit

Here's the message I get when I run phpunit --version:

This version of PHPUnit requires PHP 5.6; using the latest version of PHP is highly recommended.

I now realise PHPUnit 5.1 requires PHP 5.6 (14.04 has PHP up to 5.5.9 only). I'm using PHP 5.5.9 and don't want to upgrade to the next version.

How can I completely remove PHPUnit 5.1? My aim is to then use the old version of PHPUnit (4.8).

Ref: https://phpunit.de/manual/current/en/installation.html

1 Answers1

4

You have moved (and renamed) only one file. For this reason

sudo rm -r /usr/local/bin/phpunit

Why -r? Because /usr/local/bin/phpunit could also be a folder.

A.B.
  • 90,397