【发布时间】:2016-03-29 23:46:03
【问题描述】:
我似乎无法让 Phing 使用通过 composer 安装的 PHPUnit(在项目本地 bin/ 目录中)。作为最后的手段,如果我告诉 Phing 使用我的 phpunit 可执行文件,就好像它是使用 <phpunit pharlocation="${basedir}/bin/phpunit" /> 的 PHAR 文件一样
但这也失败了:
Project > phpunit:
#!/usr/bin/env php
PHPUnit 4.8.21 by Sebastian Bergmann and contributors.
unrecognized option -- f
我宁愿不要篡改我的 PATH,因为其他开发人员应该能够轻松运行 phing phpunit-target。此外,全局安装的 phpunit 也不是我想要的,因为我不希望开发人员之间存在版本差异。
【问题讨论】:
标签: php phpunit composer-php phing