PHP

How to install PHPUnit on Mac OS

PHP

To install PHPUnit, use the following code:

curl https://phar.phpunit.de/phpunit.phar -L -o phpunit.phar
chmod +x phpunit.phar
mv phpunit.phar /usr/local/bin/phpunit

After installing the PHPUnit, check its version with the code:

phpunit --version