I have had to de- and reinstall a newer version of PHPUnit following these directions. Now when I\'m launching this line
sudo pear install --alldeps phpunit/PHPU
Process mentioned by PutzKipa works however you might need super user privileges. For ubuntu add sudo before each command.