Last active
May 22, 2016 04:52
-
-
Save joshuamabina/44e54ebc20eb2a407a36786a5a03e014 to your computer and use it in GitHub Desktop.
Awesome PHPUnit Config Template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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