我尝试在 Eclipse 上使用 PHPUnit 和 MakeGood 进行测试,但是当我从 MakeGood 运行测试时,出现如下错误:
“在 D:\Downloads\eclipse\plugins\com.piece_framework.makegood.stagehandtestrunner_3.1.1.v201409021510\resources\php\vendor\piece\stagehand-testrunner\src\Collector\PHPUnitCollector.php 中找不到类 'PHPUnit_Framework_TestSuite' 124
调用堆栈:0.0029 267904 1. {main}() D:\Downloads\eclipse\plugins\com.piece_framework.makegood.stagehandtestrunner_3.1.1.v201409021510\resources\php\bin\testrunner.php:0
0.3527 2733800 2. Symfony\Component\Console\Application->run() D:\Downloads\eclipse\plugins\com.piece_framework.makegood.stagehandtestrunner_3.1.1.v201409021510\resources\php\bin\testrunner.php:55
0.3988 3124008 3. Symfony\Component\Console\Application->doRun() D:\Downloads\eclipse\plugins\com.piece_framework.makegood.stagehandtestrunner_3.1.1.v201409021510\resources\php\vendor\symfony\console\Symfony\Component\Console\Application.php:124
0.4046 3125048 4. Symfony\Component\Console\Application->doRunCommand() D:\Downloads\eclipse\plugins\com.piece_framework.makegood.stagehandtestrunner_3.1.1.v201409021510\resources\php\vendor\symfony\console\Symfony\Component\Console\Application.php:193
0.4052 3125472 5. Symfony\Component\Console\Command\Command->run() D:\Downloads\eclipse\plugins\com.piece_framework.makegood.stagehandtestrunner_3.1.1.v201409021510\resources\php\vendor\symfony\console\Symfony\Component\Console\Application.php:887
0.4398 3131080 6. Stagehand\TestRunner\CLI\TestRunnerApplication\Command\PluginCommand->execute() D:\Downloads\eclipse\plugins\com.piece_framework.makegood.stagehandtestrunner_3.1.1.v201409021510\resources\php\vendor\symfony\console\Symfony\Component\Console\Command\Command.php:252
0.6717 4411720 7. Stagehand\TestRunner\CLI\TestRunnerApplication\Command\PluginCommand->createTestRunner() D:\Downloads\eclipse\plugins\com.piece_framework.makegood.stagehandtestrunner_3.1.1.v201409021510\resources\php\vendor\piece\stagehand-testrunner\src\CLI\TestRunnerApplication\Command\PluginCommand.php:149
0.6718 4411848 8. Stagehand\TestRunner\Core\ApplicationContext->createComponent() D:\Downloads\eclipse\plugins\com.piece_framework.makegood.stagehandtestrunner_3.1.1.v201409021510\resources\php\vendor\piece\stagehand-testrunner\src\CLI\TestRunnerApplication\Command\PluginCommand.php:295
0.6718 4411912 9. Stagehand\ComponentFactory\ComponentFactory->create() D:\Downloads\eclipse\plugins\com.piece_framework.makegood.stagehandtestrunner_3.1.1.v201409021510\resources\php\vendor\piece\stagehand-testrunner\src\Core\ApplicationContext.php:104
0.6720 4412416 10. Symfony\Component\DependencyInjection\Container->get() D:\Downloads\eclipse\plugins\com.piece_framework.makegood.stagehandtestrunner_3.1.1.v201409021510\resources\php\vendor\piece\stagehand-componentfactory\src\Stagehand\ComponentFactory\ComponentFactory.php:76
0.6721 4413008 11. Stagehand\TestRunner\DependencyInjection\PHPUnitContainer->getTestRunnerService() D:\Downloads\eclipse\plugins\com.piece_framework.makegood.stagehandtestrunner_3.1.1.v201409021510\resources\php\vendor\symfony\dependency-injection\Symfony\Component\DependencyInjection\Container.php:312
0.6854 4475880 12. Symfony\Component\DependencyInjection\Container->get() D:\Downloads\eclipse\plugins\com.piece_framework.makegood.stagehandtestrunner_3.1.1.v201409021510\resources\php\vendor\piece\stagehand-testrunner\src\DependencyInjection\PHPUnitContainer.php:448
0.6856 4476408 13. Stagehand\TestRunner\DependencyInjection\PHPUnitContainer->getPhpunit_CollectorService() D:\Downloads\eclipse\plugins\com.piece_framework.makegood.stagehandtestrunner_3.1.1.v201409021510\resources\php\vendor\symfony\dependency-injection\Symfony\Component\DependencyInjection\Container.php:312
0.6943 4601016 14. Stagehand\TestRunner\Collector\Collector->__construct() D:\Downloads\eclipse\plugins\com.piece_framework.makegood.stagehandtestrunner_3.1.1.v201409021510\resources\php\vendor\piece\stagehand-testrunner\src\DependencyInjection\PHPUnitContainer.php:302
0.6943 4601120 15. Stagehand\TestRunner\Collector\PHPUnitCollector->createTestSuite() D:\Downloads\eclipse\plugins\com.piece_framework.makegood.stagehandtestrunner_3.1.1.v201409021510\resources\php\vendor\piece\stagehand-testrunner\src\Collector\Collector.php:92
"
我在 Eclipse 上的项目中正确导入了 phpunit.phar(因为在今年 12 月之后,Pear 将不再与 PHPUnit 一起使用)但是 MakeGood 看起来他并不真的很高兴......
预先感谢您的帮助。