title: How to get 100% Code Coverage with PHPUnit
body: <p>I am writing a Zend Framework application and unit testing it with PHPUnit.  In general, things are going swimmingly however I have a small, but annoying issue with PHPUnit and code coverage - it sometimes tells me that a particular line is not tested, and I don't know how to force it to be tested.</p>
  
  <p>In the following code, for example, I launch two tests: one with a GET request, one with a POST request.  The tests pass, and that's all fine.  When I look at the code coverage, however, it shows me that the 'else' line is not executed.</p>
  
  <pre><code>public function editAction()
  {        
      if ($request-&gt;isPost()) {
          // do actions related to POST
      } else {
          // do action related to GET
      }
  }
  </code></pre>
  
  <p>Any ideas?  As a side issue, do you usually persevere with unit tests until you get 100% code coverage?  Or is this not really practical?</p>
  
  <p>Thanks muchly...</p>