Symfony2演示测试问题 [英] Symfony2 demo testing issues
本文介绍了Symfony2演示测试问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚安装了最新版本的phpunit,并且当我使用以下命令运行演示测试时:
I just installed the last version of phpunit and when I run the demo test with:
bin/phpunit src/Acme/DemoBundle/Tests/
我遇到了这个问题:
1) Acme\DemoBundle\Tests\Controller\DemoControllerTest::testIndex
RuntimeException: Unable to guess the Kernel directory.
和引用内核的行
关于此DEMO TEST为什么不起作用的任何想法?
Any ideas about why does this DEMO TEST doesn't works?
推荐答案
尝试从项目根目录运行bin/phpunit -c app/ src/Acme/DemoBundle/Tests/
.
Try runing bin/phpunit -c app/ src/Acme/DemoBundle/Tests/
from your project root directory.
有一个app/phpunit.xml.dist
phpunit配置文件,设置了Symfony所需的一些选项.
There is app/phpunit.xml.dist
phpunit configuration file, setting some options needed by Symfony.
这篇关于Symfony2演示测试问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文