我想使用 Eclipse 插件“makegood”在 Eclipse 中使用 php-unit-tests。当我在控制台上运行 phpunit 时,一切正常。
我按照以下说明在 Eclipse 中设置 makegood 插件:http: //www.stuermer-benjamin.de/v12_1/eclipse-4-2-with-php-android-and-unit-testing/
makegood 的状态是“等待测试运行...”,但是当我尝试运行单元测试时,我在控制台中打印了这个错误:
Fatal error: Class
> 'Stagehand\TestRunner\CLI\TestRunnerApplication\Command\CommandRepository'
> not found in C:\Users\myNameWith18Charac
> \.eclipse\org.eclipse.platform_4.3.0_1709980481_win32_win32_x86_64\plugins\com.piece_framework.makegood.stagehandtestrunner_2.5.0.v201311031709\resources\php\php\Stagehand\TestRunner\CLI\TestRunnerApplication\Application.php
> on line 64
>
> Call Stack:
> 0.0000 148336 1. {main}() C:\Users\myNameWith18Charac\.eclipse\org.eclipse.platform_4.3.0_1709980481_win32_win32_x86_64\plugins\com.piece_framework.makegood.stagehandtestrunner_2.5.0.v201311031709\resources\php\bin\testrunner.php:0
> 0.0100 460744 2. Stagehand\TestRunner\CLI\TestRunnerApplication\Application->__construct()
> C:\Users\myNameWith18Charac\.eclipse\org.eclipse.platform_4.3.0_1709980481_win32_win32_x86_64\plugins\com.piece_framework.makegood.stagehandtestrunner_2.5.0.v201311031709\resources\php\bin\testrunner.php:58
类Stagehand\TestRunner\CLI\TestRunnerApplication\Command\CommandRepository
是存在的!
路径可能太长了吗?但是不知道怎么改。我正在使用win7 x64。