php-pear install phpunit
公式ドキュメント: http://www.phpunit.de/manual/current/en/installation.html
echo 复制下面整段shell到命令行终端中,会自动逐条执行。sudo ln -s /usr/local/php/bin/pear /usr/bin/pearsudo pear config-set auto_discover 1sudo pear install pear.phpunit.de/PHPUnitsudo ln -s /usr/local/php/bin/phpunit /usr/bin/phpunitphpunit --version