"No whitelist configured...". But thats not true. <whitelist> defined in Symfony app\phpunit.xml.dist. (This error occur only in Netbeans, not in cmd)
<p>(I'm beginner in PHPUnit)</p>

<p>In Netbeans I try to code-coverage PHPUnit in Symfony2.8 project, but it throws error:</p>

<pre><code>"C:\wamp\www\treningPHPUnitSymfony2.8\bin\phpunit.bat" "--colors" "--log-junit" "C:\Users\chiny\AppData\Local\Temp\nb-phpunit-log.xml" "--coverage-clover" "C:\Users\chiny\AppData\Local\Temp\nb-phpunit-coverage.xml" "C:\Program Files\NetBeans 8.1\php\phpunit\NetBeansSuite.php" "--" "--run=C:\wamp\www\treningPHPUnitSymfony2.8\src\TreningBundle\Tests\Utils\CalculatorTest.php"
PHPUnit 5.3.4 by Sebastian Bergmann and contributors.

Error:         No whitelist configured, no code coverage will be generated

................I                                                17 / 17 (100%)

Time: 531 ms, Memory: 4.00MB

OK, but incomplete, skipped, or risky tests!
Tests: 17, Assertions: 16, Incomplete: 1.
Done.
</code></pre>

<p>But i have Symfony default app\phpunit.xml.dist with <code>&lt;whitelist&gt;</code> defined :</p>

<pre><code>&lt;phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.8/phpunit.xsd"
         backupGlobals="false"
         colors="true"
         bootstrap="autoload.php"
&gt;
    &lt;php&gt;
        &lt;ini name="error_reporting" value="-1" /&gt;
        &lt;!--
            &lt;server name="KERNEL_DIR" value="/path/to/your/app/" /&gt;
        --&gt;
    &lt;/php&gt;

    &lt;testsuites&gt;
        &lt;testsuite name="Project Test Suite"&gt;
            &lt;directory&gt;../src/*/*Bundle/Tests&lt;/directory&gt;
            &lt;directory&gt;../src/*/Bundle/*Bundle/Tests&lt;/directory&gt;
            &lt;directory&gt;../src/*Bundle/Tests&lt;/directory&gt;
        &lt;/testsuite&gt;
    &lt;/testsuites&gt;

    &lt;filter&gt;
        &lt;whitelist&gt;
            &lt;directory&gt;../src&lt;/directory&gt;
            &lt;exclude&gt;
                &lt;directory&gt;../src/*Bundle/Resources&lt;/directory&gt;
                &lt;directory&gt;../src/*Bundle/Tests&lt;/directory&gt;
                &lt;directory&gt;../src/*/*Bundle/Resources&lt;/directory&gt;
                &lt;directory&gt;../src/*/*Bundle/Tests&lt;/directory&gt;
                &lt;directory&gt;../src/*/Bundle/*Bundle/Resources&lt;/directory&gt;
                &lt;directory&gt;../src/*/Bundle/*Bundle/Tests&lt;/directory&gt;
            &lt;/exclude&gt;
        &lt;/whitelist&gt;
    &lt;/filter&gt;
&lt;/phpunit&gt;
</code></pre>

<p>I got:
Symfony2.8, PHPUnit5.3.4, Netbeans 8.1</p>

<hr>

<p>edit</p>

<p>But in windows console command
<code>phpunit -c app/ src/TreningBundle/ --coverage-html=cov/</code> works great, generate coverage.</p>