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을 3.7.28 PHP 5.4.24
OS는 맥 10.9.2입니다
제거하고 다시 시작, PHPStorm, 업그레이드 된 PHP, 다시 설치 phpunit을을 재설치 아파치, 재부팅, 내 머리를 긁적 등.
터미널에서 수동으로 phpunit 테스트를 실행하면 정상적으로 작동합니다.
PHpStorm 내의 환경 설정을 보면 phpunit을 올바르게 가리키는 것으로 보입니다. 권한 또는 경로 문제라고 생각하지만 다음으로보아야 할 위치를 모르겠습니다.
입력 또는 방향을 이해하십시오.
내가 여기 해결 방법을 문서화했습니다 [인 IntelliJ의 IDEA가 실행되지 않습니다 phpunit을 4.0 테스트 (http://stackoverflow.com/a/22799620/315988) – Darien