Skip to content

Commit cfb0d64

Browse files
2 parents 2e44936 + 6648092 commit cfb0d64

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@php ./vendor/bin/phpcbf --report=summary,source"
2424
],
2525
"test": [
26-
"@php ./vendor/bin/phpunit --testdox"
26+
"@php ./vendor/bin/phpunit -c phpunit-9.xml --testdox"
2727
],
2828
"coverage": [
2929
"@php ./vendor/bin/phpunit --coverage-html ./coverage-report"

phpunit-9.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0"?>
2+
<phpunit
3+
bootstrap="tests/bootstrap.php"
4+
backupGlobals="false"
5+
colors="true"
6+
failOnWarning="true"
7+
>
8+
<php>
9+
<!-- <env name="WP_TESTS_DIR" value=""/> -->
10+
<!-- <env name="WP_TESTS_PHPUNIT_POLYFILLS_PATH" value="path/to/yoast/phpunit-polyfills"/> -->
11+
</php>
12+
<testsuites>
13+
<testsuite name="testing">
14+
<directory suffix="Test.php">./tests/</directory>
15+
<exclude>./tests/SampleTest.php</exclude>
16+
</testsuite>
17+
</testsuites>
18+
</phpunit>

0 commit comments

Comments
 (0)