title: Stop phing deployment if code coverage is below 85%
body: <p>Am using a phing to deploy my php code but we need to add a condition to stop the deployment if any of the PHP Unit test cases fails or code coverage is less than 85%</p>
  
  <p>We were able to add the PHP Unit test case condition by adding following code in built.xml</p>
  
  <pre><code>&lt;phpunit  haltonerror="true" haltonfailure="true" printsummary="true"&gt;
  &lt;/phpunit&gt;
  </code></pre>
  
  <p>Now i need to test for the code coverage percentage, Please let me know how can i do that?</p>