title: PHPUnit Code Coverage
body: <p>I am learning the ropes with Unit testing <code>Zend Framework</code> applications. So far I have set up <code>PHPUnit</code> to work with <code>Zend Framework</code> and have started writing some simple Test Cases.</p>
  
  <p>My issue is that I am wondering why <code>Code Coverage</code> does not work in spite of being set in the logging tag in my <code>phpunit.xml</code>. </p>
  
  <p>I don't get any error but no coverage report is generated.</p>
  
  <p>However it works when I run <code>phpunit --coverage &lt;dir&gt;</code></p>
  
  <p>The logging section of my phpunit is as below:</p>
  
  <pre><code>&lt;phpunit bootstrap="./application/bootstrap.php" colors="true"&gt;
          &lt;testsuite name="CI Test Suite"&gt;
              &lt;directory&gt;./&lt;/directory&gt;
          &lt;/testsuite&gt;
          &lt;testsuite name="Library Test Suite"&gt;
              &lt;directory&gt;./library&lt;/directory&gt;
          &lt;/testsuite&gt;
  
          &lt;filter&gt;
              &lt;whitelist&gt;
                  &lt;directory suffix=".php"&gt;../application/&lt;/directory&gt;
                  &lt;exclude&gt;
                      &lt;directory suffix=".phtml"&gt;../application&lt;/directory&gt;
                      &lt;file&gt;../application/Bootstrap.php&lt;/file&gt;
                      &lt;file&gt;../application/controllers/ErrorController.php&lt;/file&gt;
                  &lt;/exclude&gt;
              &lt;/whitelist&gt;
             &lt;logging&gt;
                 &lt;log type="coverage-html" target="./log/report" charset="UTF-8" yui="true"
     highlight="true" lowUpperBound="50" highLowerBound="80" /&gt;
                 &lt;log type="testdox" target="./log/testdox.html" /&gt;    
             &lt;/logging&gt;
          &lt;/filter&gt;
      &lt;/phpunit&gt;
  </code></pre>
  
  <p>Anyone encounter this before? What is then likely problem?</p>