📜  如何安装 phpunit - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:53.111000             🧑  作者: Mango

代码示例1
# If the Suhosin extension is enabled, you need to 
# allow execution of PHARs in your php.ini:
suhosin.executor.include.whitelist = phar

# To globally install the PHAR:
$ wget https://phar.phpunit.de/phpunit-6.5.phar
$ chmod +x phpunit-6.5.phar
$ sudo mv phpunit-6.5.phar /usr/local/bin/phpunit
$ phpunit --version

# You may also use the downloaded PHAR file directly:
$ wget https://phar.phpunit.de/phpunit-6.5.phar
$ php phpunit-6.5.phar --version