MakeGood + PHPUnit + Eclipse Luna

时间:2014-11-19 00:36:59

标签: php eclipse phpunit makegood

我尝试用PHPUnit& amp; MakeGood on Eclipse但是当我从MakeGood运行测试时,我有一个错误:

" Class' PHPUnit_Framework_TestSuite'在第124行的D:\ Downloads \ eclipse \ plugins \ com.piece_framework.makegood.stagehandtestrunner_3.1.1.v201409021510 \ resources \ php \ vendor \ piece \ stagehand-testrunner \ src \ Collector \ PHPUnitCollector.php中找不到

调用堆栈:     0.0029 267904 1. {main}() d:\下载\蚀\插件\ com.piece_framework.makegood.stagehandtestrunner_3.1.1.v201409021510 \资源\ 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看起来并不是很开心......

提前感谢您的帮助。

1 个答案:

答案 0 :(得分:1)

目前,MakeGood不支持phpunit.phar。使用PHPUnit作为Composer包,如下所示:

composer require --dev phpunit/phpunit "4.4.*"