Ubuntu 环境安装 phpunit
用laravel项目的phpunit需要输入./vendor/bin/php
麻烦
用apt-get install phpunit
会报错
解决方法
http://www.phpunit.cn/getting-started.html
➜ wget http://phar.phpunit.cn/phpunit.phar
➜ chmod +x phpunit.phar
➜ sudo mv phpunit.phar /usr/local/bin/phpunit
➜ phpunit --version
本作品采用《CC 协议》,转载必须注明作者和本文链接
用apt安装是舍近求远呀,兄弟
我ubuntu18安装然后使用是会报错的。