phpunit + Symfony2:没有消息指定哪些测试失败

phpunit + Symfony2: There is no message specifying which tests are failing

当我 运行 phpunit -c app 这是输出:

PHPUnit 5.1.3 by Sebastian Bergmann and contributors.

WF.FFF..............                                              20 / 20 
(100%)

Time: 19.65 seconds, Memory: 18.00Mb

There was 1 warning:

1) Warning
No tests found in class "Sheik\RobotBundle\Tests\Controller\CrawlerControllerTest".

WARNINGS!
Tests: 20, Assertions: 21, Failures: 4, Warnings: 1.

我在 Ubuntu 16.04 中使用 Symfony 2.5。在更新到 Ubuntu 16.04 之前,每次失败都会有一条消息指定哪个测试失败。

这是我的 app/phpunit.xml.dist:

    <?xml version="1.0" encoding="UTF-8"?>

<!-- http://phpunit.de/manual/current/en/appendixes.configuration.html -->
<phpunit
    backupGlobals               = "false"
    backupStaticAttributes      = "false"
    colors                      = "true"
    convertErrorsToExceptions   = "true"
    convertNoticesToExceptions  = "true"
    convertWarningsToExceptions = "true"
    processIsolation            = "false"
    stopOnFailure               = "false"
    syntaxCheck                 = "false"
    bootstrap                   = "bootstrap.php.cache" >

    <testsuites>
        <testsuite name="Project Test Suite">
            <directory>../src/*/*Bundle/Tests</directory>
            <directory>../src/*/Bundle/*Bundle/Tests</directory>
        </testsuite>
    </testsuites>

    <!--
    <php>
        <server name="KERNEL_DIR" value="/path/to/your/app/" />
    </php>
    -->

    <filter>
        <whitelist>
            <directory>../src</directory>
            <exclude>
                <directory>../src/*/*Bundle/Resources</directory>
                <directory>../src/*/*Bundle/Tests</directory>
                <directory>../src/*/Bundle/*Bundle/Resources</directory>
                <directory>../src/*/Bundle/*Bundle/Tests</directory>
            </exclude>
        </whitelist>
    </filter>

</phpunit>

我尝试了另一个问题中的建议: PHPUnit problem - no error messages 但是 error_reporting 已经设置为 E_ALL | E_STRICT 和 display_errors 在我的 php.ini 中开启。

我会感谢任何其他建议或提示。

仅作记录,也许它可以帮助某人解决问题,使用 phpunit -c app src/yourVendor/yourBundle/Tests/
将显示失败测试的每条路径丢失的失败消息。