我刚刚安装了phpunit的最新版本,当我使用以下命令运行演示测试时:
bin/phpunit src/Acme/DemoBundle/Tests/我有这样的问题:
1) Acme\DemoBundle\Tests\Controller\DemoControllerTest::testIndex
RuntimeException: Unable to guess the Kernel directory.以及内核被引用的代码行
为什么这个演示测试不能工作,有什么想法吗?
发布于 2013-03-05 18:02:28
尝试从项目根目录运行bin/phpunit -c app/ src/Acme/DemoBundle/Tests/。
有app/phpunit.xml.dist phpunit配置文件,设置Symfony需要的一些选项。
https://stackoverflow.com/questions/15215675
复制相似问题