From 6fa3c87d32dd16655ffb37865e1585b2b35154cd Mon Sep 17 00:00:00 2001 From: nodiscc Date: Sun, 19 Jan 2020 12:40:28 +0100 Subject: doc: simplify composer installation procedure --- doc/md/Unit-tests.md | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'doc') diff --git a/doc/md/Unit-tests.md b/doc/md/Unit-tests.md index f6030d5c..74920ac1 100644 --- a/doc/md/Unit-tests.md +++ b/doc/md/Unit-tests.md @@ -6,24 +6,15 @@ The framework used is [PHPUnit](https://phpunit.de/); it can be installed with [ You can either use: -- a system-wide version, e.g. installed through your distro's package manager -- a local version, downloadable [here](https://getcomposer.org/download/). +- a system-wide version, e.g. installed through your distro's package manager (eg. `sudo apt install composer`) +- a local version, downloadable [here](https://getcomposer.org/download/). To update a local composer installation, run `php composer.phar self-update` -```bash -# system-wide version -$ composer install -$ composer update - -# local version -$ php composer.phar self-update -$ php composer.phar install -$ php composer.phar update -``` #### Install Shaarli dev dependencies ```bash $ cd /path/to/shaarli +$ composer install $ composer update ``` -- cgit v1.2.3