Skip to content

Instantly share code, notes, and snippets.

@vitorbrandao
Created February 16, 2016 10:15
Show Gist options
  • Save vitorbrandao/9ef1ed5649fd86ae2e92 to your computer and use it in GitHub Desktop.
Save vitorbrandao/9ef1ed5649fd86ae2e92 to your computer and use it in GitHub Desktop.
PHPUnit config for a ZF2 app.
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
colors = "true"
convertErrorsToExceptions = "true"
convertNoticesToExceptions = "true"
convertWarningsToExceptions = "true"
processIsolation = "false"
stopOnFailure = "true"
syntaxCheck = "true"
bootstrap = "vendor/autoload.php">
<testsuites>
<testsuite name="zf2-skeletonapp">
<directory suffix="Test.php">module/*/test/*</directory>
</testsuite>
</testsuites>
<logging>
<log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false" />
</logging>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true" addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">module/*/src/*</directory>
</whitelist>
<blacklist>
<directory suffix=".php">vendor/*</directory>
</blacklist>
</filter>
</phpunit>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment