Skip to content

Instantly share code, notes, and snippets.

@joshuamabina
Last active May 22, 2016 04:52
Show Gist options
  • Save joshuamabina/44e54ebc20eb2a407a36786a5a03e014 to your computer and use it in GitHub Desktop.
Save joshuamabina/44e54ebc20eb2a407a36786a5a03e014 to your computer and use it in GitHub Desktop.
Awesome PHPUnit Config Template
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="bootstrap/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="true">
<testsuites>
<testsuite name="app">
<directory>./tests/</directory>
</testsuite>
<testsuite name="controllers">
<directory>./tests/Controllers/</directory>
</testsuite>
<testsuite name="models">
<directory>./tests/Models/</directory>
</testsuite>
<testsuite name="functional">
<directory>./tests/Functional/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">app/</directory>
</whitelist>
</filter>
<php>
<env name="APP_ENV" value="testing"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="QUEUE_DRIVER" value="sync"/>
</php>
</phpunit>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment