October 20, 2022 | Posted in 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