0
我一直在尝试在PhpStorm 8.0.1中安装PHPUnit,但没有运气。我下载phpunit.phar和路径设置为PhpStorm的设置中药业以及一个PHPUnit的配置文件,但是当我尝试运行测试失败,出现以下的输出:PHPStorm 8.0.1和PHPUnit.phar
/usr/bin/php /tmp/ide-phpunit.php --no-configuration MyTest /project/MyTest.php
Testing started at 9:31 PM ...
Process finished with exit code 1
Cannot find PHPUnit in include path (.:/usr/share/pear)
我不是专家,但它似乎并不像它使用phpunit.phar,因为当我运行
$ phpunit
在终端中测试运行正常。
当您使用PHPUnit的作为药业..然后你应该告诉PhpStorm在哪里可以找到你的'phpunit.phar'文件(例如图片#4:https://confluence.jetbrains.com/display/PhpStorm/PHPUnit+support+in+PhpStorm) – LazyOne