From f927ccdf2de403bc0323ba0418b6dc88c876aaaa Mon Sep 17 00:00:00 2001 From: mattab Date: Thu, 1 May 2014 19:06:29 +1200 Subject: Refs #5031 Now getting PHPUnit from composer/packagist. This will make like better for core team devs Updating readme with instructions. I also hope this will solve the Autoloader issue on the UI build: https://travis-ci.org/piwik/piwik-ui-tests --- tests/README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/README.md') diff --git a/tests/README.md b/tests/README.md index 6dac088406..76978dfb54 100644 --- a/tests/README.md +++ b/tests/README.md @@ -41,14 +41,15 @@ To execute the tests: ## PHPUnit Tests -1. Install PHPUnit on your system - - $ cd your/php/directory - $ sudo pear upgrade PEAR - $ pear config-set auto_discover 1 - $ sudo pear install --alldeps pear.phpunit.de/PHPUnit +1. To install PHPUnit, run `php composer.phar update` in the Piwik root directory. + + If you were already using PHPUnit using PEAR, delete the PEAR PHPUnit: - Doc at: http://www.phpunit.de/manual/current/en/installation.html + sudo rm /usr/bin/phpunit + # Create a symlink to the piwik/vendor/bin/phpunit + sudo ln -s ~/dev/piwik-master/vendor/bin/phpunit /usr/bin/phpunit + + See doc at: http://www.phpunit.de/manual/current/en/installation.html 2. Configure PHPUnit: Copy the file `piwik/tests/PHPUnit/phpunit.xml.dist` to `phpunit.xml`. In this file, you will find the following lines. @@ -62,7 +63,6 @@ To execute the tests: i.e. with the correct password to prevent the following error: `SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO)` - 4. Run the tests $ cd /path/to/piwik/tests/PHPUnit -- cgit v1.2.3