Setup code quality and tests

This commit is contained in:
David Stone
2025-02-01 15:18:13 -07:00
parent 9b3a0798f0
commit 6ff9a28403
8 changed files with 3231 additions and 0 deletions

18
phpunit.xml.dist Normal file
View File

@ -0,0 +1,18 @@
<?xml version="1.0"?>
<phpunit
bootstrap="tests/bootstrap.php"
backupGlobals="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
>
<php>
<const name="WP_TESTS_MULTISITE" value="1" />
</php>
<testsuites>
<testsuite name="testing">
<directory suffix="Test.php">./tests/</directory>
</testsuite>
</testsuites>
</phpunit>