Skip to content

Instantly share code, notes, and snippets.

@jackdpeterson
Created April 15, 2016 17:20
Show Gist options
  • Save jackdpeterson/07f0bc1fe577c67fb18adab26d8aab23 to your computer and use it in GitHub Desktop.
Save jackdpeterson/07f0bc1fe577c67fb18adab26d8aab23 to your computer and use it in GitHub Desktop.
phpunit.xml sample - with code coverage
<phpunit bootstrap="./bootstrap.php" colors="true">
<testsuites>
<testsuite name="MyCompany Test Suite">
<directory>./MyCompany/Service</directory>
</testsuite>
</testsuites>
<logging>
<log type="coverage-html" target="./log/codeCoverage" charset="UTF-8"
yui="true" highlight="true" lowUpperBound="50" highLowerBound="80"
showUncoveredFiles="false" />
<!-- <log type="testdox-html" target="./log/testdox.html" /> -->
</logging>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./../src</directory>
</whitelist>
</filter>
</phpunit>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment