diff --git a/docs/INSTALLATION.md b/docs/INSTALLATION.md index 91f4df85..df993bca 100644 --- a/docs/INSTALLATION.md +++ b/docs/INSTALLATION.md @@ -83,16 +83,31 @@ Install [Composer](https://getcomposer.org) following your devices OS [installat ## Install PHPUnit -### Via Composer +### Via PHP Archive (PHAR) + +The easiest way to use PHPUnit for Exercism exercises is downloading a distribution that is packaged as a PHP Archive (PHAR), which is also the recommended way to use PHPUnit. + +### Manual installation -PHPUnit version 10 can be installed globally via [Composer](https://getcomposer.org), using the following command: +You can download a release of PHPUnit packages as a PHP archive: ```shell -composer global require phpunit/phpunit ^10.5 +wget -O phpunit.phar https://phar.phpunit.de/phpunit-10.phar +``` +Then make the PHAR executable (it is a common practice) + +```shell +chmod +x phpunit.phar ``` +Now you can run the PHAR. -Please make sure you install version 10.5 or later. +You can also follow the official [Installing PHPUnit instructions](https://docs.phpunit.de/en/10.5/installation.html#installing-phpunit) to Install PHPUnit via a PHP Archive (PHAR) -### Manual installation +### Via Composer + +PHPUnit version 10 can also be installed globally via [Composer](https://getcomposer.org), using the following command: -If you are not using Composer package manager, follow the official [Installing PHPUnit instructions](https://docs.phpunit.de/en/10.5/installation.html#installing-phpunit). +```shell +composer global require phpunit/phpunit ^10.5 +``` +Please make sure you install version 10.5 or later. \ No newline at end of file