| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!-- |
| 3 |
Standalone (no-WordPress) unit suite. tests/unit/bootstrap.php shims the WP |
| 4 |
functions and fakes the DB/collaborator classes the classes under test call, |
| 5 |
so these run fast without a WordPress install. Kept separate from the |
| 6 |
WordPress test-suite config (phpunit.xml.dist) because the two need opposite |
| 7 |
environments (this one must NOT load WordPress). |
| 8 |
|
| 9 |
Run with: composer test:unit |
| 10 |
--> |
| 11 |
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 12 |
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd" |
| 13 |
bootstrap="tests/unit/bootstrap.php" |
| 14 |
colors="true" |
| 15 |
beStrictAboutOutputDuringTests="true" |
| 16 |
failOnWarning="true" |
| 17 |
> |
| 18 |
<testsuites> |
| 19 |
<testsuite name="unit"> |
| 20 |
<directory prefix="test-" suffix=".php">tests/unit/inc/privacy</directory> |
| 21 |
</testsuite> |
| 22 |
</testsuites> |
| 23 |
</phpunit> |
| 24 |
|