使用PhpStorm运行phpunit测试。使用PHPSTORM运行测试时发生PHPUNIT错误
收到此错误:
/usr/local/php5/bin/php /private/var/folders/m8/k61mmmmj7g732j3pd0_91s0c0000gn/T/ide-phpunit.php --configuration /Users/psteinheuser/unity/test/phpunit.xml DatabaseDumperTest /Users/psteinheuser/unity/test/DatabaseDumperTest.inc Testing started at 11:36 AM ...
Fatal error: Class IDE_PHPUnit_Framework_TestListener contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (PHPUnit_Framework_TestListener::addRiskyTest) in /private/var/folders/m8/k61mmmmj7g732j3pd0_91s0c0000gn/T/ide-phpunit.php on line 504
Call Stack: 0.0013 340096 1. {main}() /private/var/folders/m8/k61mmmmj7g732j3pd0_91s0c0000gn/T/ide-phpunit.php:0 PHP Fatal error: Class IDE_PHPUnit_Framework_TestListener contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (PHPUnit_Framework_TestListener::addRiskyTest) in /private/var/folders/m8/k61mmmmj7g732j3pd0_91s0c0000gn/T/ide-phpunit.php on line 504
有没有发现已经表示,这是固定的以前的帖子,但我似乎有正确的版本,它应该工作。
PHPStorm 7.1.3 PHPUnit的28年3月7日 PHP 5.4.24
操作系统是否为Mac 10.9.2
已删除并重新安装PHPStorm,升级PHP,重新安装PHPUnit的,重新启动Apache,重新启动,划伤我的头等
从终端手动运行phpunit测试,工作正常。
查看PHpStorm中的首选项,它似乎指向正确的phpunit。 我在想这是一个许可或路径问题,但我不知道下一步要看哪里。
欣赏任何输入或方向。
我在这里记录了解决办法: [IntelliJ IDEA的将不会运行PHPUnit的4.0测试(http://stackoverflow.com/a/22799620/315988) – Darien