Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
My XML configuration file for running PHPUnit test in WordPress
<phpunit
bootstrap="./tests/bootstrap.php"
backupGlobals="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true">
<php>
<const name="WP_DEFAULT_THEME" value="epicbeat" />
<const name="WP_ENVIRONMENT" value="LOCAL" />
</php>
<testsuites>
<testsuite>
<directory prefix="test-" suffix=".php">./tests/</directory>
</testsuite>
</testsuites>
</phpunit>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.