Configure PHPUnit

This commit is contained in:
Oliver Davies 2023-12-25 21:55:39 +00:00
parent fafddca637
commit ebd4e202c2
2 changed files with 15 additions and 0 deletions

1
.gitignore vendored
View file

@ -47,3 +47,4 @@
/.editorconfig
/.gitattributes
/.phpunit.result.cache

14
phpunit.xml.dist Normal file
View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="web/core/tests/bootstrap.php" colors="true">
<php>
<env name="SIMPLETEST_BASE_URL" value="http://localhost:8000"/>
<env name="SIMPLETEST_DB" value="sqlite://localhost//dev/shm/test.sqlite"/>
<ini name="error_reporting" value="32767"/>
<ini name="memory_limit" value="-1"/>
</php>
<testsuites>
<testsuite name="Example tests">
<directory suffix="Test.php">./web/modules/**</directory>
</testsuite>
</testsuites>
</phpunit>