Skip to content

Instantly share code, notes, and snippets.

@ceilidhboy
Last active July 17, 2022 12:59
Show Gist options
  • Save ceilidhboy/63f54b2789cb6d3e92b82a59eaa700b6 to your computer and use it in GitHub Desktop.
Save ceilidhboy/63f54b2789cb6d3e92b82a59eaa700b6 to your computer and use it in GitHub Desktop.
Basic phpunit.xml file for setting up PhpUnit on a new project. Set a sensible name on line 7.
<?xml version="1.0" encoding="UTF-8" ?>
<phpunit bootstrap="vendor/autoload.php"
colors="true"
stopOnFailure="false"
testdox="true">
<testsuites>
<testsuite name="change-this-to-what-you-are-testing">
<directory suffix="Tests.php">tests</directory>
</testsuite>
</testsuites>
</phpunit>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment