linux centos6.5 php5.6 安装PHPUnit 5.2.9 (转)

转自:http://blog.csdn.net/shancunxiaoyazhi/article/details/50765293

操作系统版本:CentOS6.5

PHP版本:5.6

下载phpunit :https://phpunit.de/

安装phpunit步骤:

wget https://phar.phpunit.de/phpunit.phar
chmod +x phpunit.phar
sudo mv phpunit.phar /usr/local/bin/phpunit
[sql] view plain copy
 
  1. <span class="comment" style="color:rgb(153,153,136); font-style:italic">[root@localhost local]# phpunit  
  2. PHPUnit 5.2.9 by Sebastian Bergmann and contributors.  
  3. </span>  

如上输入phpunit查看到版本号即安装成功!

原文地址:https://www.cnblogs.com/yueminghai/p/7232155.html