在Ubuntu 12.04上,Phing和PHPUnit都是通过pear安装的。
PHPUnit位于/usr/bin/phpunit,/usr/bin在Unix路径上,并且还出现在PHP.INI中的include_path里。
我如何告诉Phing PHPUnit的安装位置?
webroot@gm3:~/med1/pub$ phing utest
Buildfile: /home/webroot/med1/pub/build.xml
myproject > utest:
[echo] Unittests PHPUnit...
Execution of target "utest" failed for the following reason: /home/webroot/med1/pub/build.xml:8:40: /home/webroot/med1/pub/build.xml:8:40: PHPUnitTask requires PHPUnit to be installed
BUILD FAILED
/home/webroot/med1/pub/build.xml:8:40: /home/webroot/med1/pub/build.xml:8:40: PHPUnitTask requires PHPUnit to be installed
Total time: 0.1148 seconds
pharlocation
属性了吗? - Sandeepan Nath