Skip to content

Instantly share code, notes, and snippets.

@adammbalogh
Last active August 29, 2015 14:21
Show Gist options
  • Save adammbalogh/608d8478b412b034d232 to your computer and use it in GitHub Desktop.
Save adammbalogh/608d8478b412b034d232 to your computer and use it in GitHub Desktop.
from flysystem
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="tests/bootstrap.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="true"
verbose="true">
<testsuites>
<testsuite name="package-name/tests">
<directory>./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">./src/</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-text" target="php://stdout" showUncoveredFiles="true"/>
<log type="coverage-html" target="coverage" showUncoveredFiles="true"/>
<log type="coverage-clover" target="coverage.xml" showUncoveredFiles="true"/>
</logging>
</phpunit>
@adammbalogh
Copy link
Author

About backupGlobalsand backupStaticAttributes

By default, PHPUnit runs your tests in a way where changes to global and super-global variables ($GLOBALS, $_ENV, $_POST, $_GET, $_COOKIE, $_SERVER, $_FILES, $_REQUEST) do not affect other tests. Optionally, this isolation can be extended to static attributes of classes.

Docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment