Upgrading phpunit … a bit of a headache – here is how I got it working

I started here – this gave most the tips . This command

sudo pear channel-discover pear.phpunit.de

fails though … so Tamra on another site mentioned to install that part another way. Then finish the above commands.

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

There was another curve ball – a message took the whole screen and said …

  • This PPA is deprecated!
  • Please note that this PPA is deprecated and it’s being replaced with ppa:ondrej/php that contains co-installable versions of PHP 5.5, PHP 5.6 and PHP 7.0.
    This PPA will reach end of life at the end of June 2016, and you have to replace it with the new centralized PHP PPA.
  • To add the new PPA, do:
    • sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
    • sudo apt-get update
  • And the install correct PHP version:
    • sudo apt-get install php7.0 # for PHP 7.0
    • sudo apt-get install php5.6 # for PHP 5.6
    • sudo apt-get install php5.5 # for PHP 5.5
  • The packages for extensions contain modules for all supported PHP versions and can be installed with (f.e. xdebug and APCu):
    • sudo apt-get install php-xdebug php-apcu

So I followed the instructions for php 6.5 and started again at the top of this article.