Skip to content

Instantly share code, notes, and snippets.

@javiergomezve
Forked from viralsolani/phpunit.xml
Created September 5, 2019 21:36
Show Gist options
  • Save javiergomezve/c0669b5cc0a3d2d30dc6c9d15c203b1e to your computer and use it in GitHub Desktop.
Save javiergomezve/c0669b5cc0a3d2d30dc6c9d15c203b1e to your computer and use it in GitHub Desktop.

Revisions

  1. @viralsolani viralsolani created this gist May 9, 2017.
    33 changes: 33 additions & 0 deletions phpunit.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,33 @@
    <?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="false">
    <testsuites>
    <testsuite name="Feature Tests">
    <directory suffix="Test.php">./tests/Feature</directory>
    </testsuite>

    <testsuite name="Unit Tests">
    <directory suffix="Test.php">./tests/Unit</directory>
    </testsuite>
    </testsuites>
    <filter>
    <whitelist processUncoveredFilesFromWhitelist="true">
    <directory suffix=".php">./app</directory>
    </whitelist>
    </filter>
    <php>
    <env name="APP_ENV" value="testing"/>
    <env name="DB_CONNECTION" value="sqlite"/>
    <env name="DB_DATABASE" value=":memory:"/>
    <env name="CACHE_DRIVER" value="array"/>
    <env name="SESSION_DRIVER" value="array"/>
    <env name="QUEUE_DRIVER" value="sync"/>
    </php>
    </phpunit>