【问题标题】:Symfony2 demo testing issuesSymfony2 演示测试问题
【发布时间】:2013-03-05 04:10:34
【问题描述】:

我刚刚安装了最新版本的 phpunit,当我运行演示测试时:

bin/phpunit src/Acme/DemoBundle/Tests/

我遇到了这个问题:

1) Acme\DemoBundle\Tests\Controller\DemoControllerTest::testIndex
RuntimeException: Unable to guess the Kernel directory.

以及引用内核的行

关于为什么这个 DEMO TEST 不起作用的任何想法?

【问题讨论】:

    标签: testing symfony phpunit symfony-2.2


    【解决方案1】:

    尝试从您的项目根目录运行bin/phpunit -c app/ src/Acme/DemoBundle/Tests/

    app/phpunit.xml.dist phpunit 配置文件,设置Symfony 需要的一些选项。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-09-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-03-05
      • 2012-03-07
      相关资源
      最近更新 更多