From 20d99668b5820186673ef534ced61411f4231945 Mon Sep 17 00:00:00 2001 From: Olivier Paroz Date: Wed, 18 Mar 2015 21:03:22 +0100 Subject: [PATCH] PHPUnit is not available on PEAR any more --- developer_manual/core/unit-testing.rst | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/developer_manual/core/unit-testing.rst b/developer_manual/core/unit-testing.rst index 3cf2d30b3..fc1f7543d 100644 --- a/developer_manual/core/unit-testing.rst +++ b/developer_manual/core/unit-testing.rst @@ -13,13 +13,22 @@ To install it, either get it via your packagemanager:: sudo apt-get install phpunit -or install it via PEAR:: +or install it manually:: - pear config-set auto_discover 1 - pear install pear.phpunit.de/PHPUnit + wget https://phar.phpunit.de/phpunit.phar + chmod +x phpunit.phar + sudo mv phpunit.phar /usr/local/bin/phpunit After the installation the ''phpunit'' command is available. + phpunit --version + +And you can update it using + + phpunit --self-update + +You can find more information in the PHPUnit documentation: https://phpunit.de/manual/current/en/installation.html + Writing PHP unit tests ~~~~~~~~~~~~~~~~~~~~~~