Skip to content

Commit 6648092

Browse files
Add PHPUnit configuration file for version 9
- Created a new phpunit-9.xml file to configure PHPUnit for testing. - Set up bootstrap file and defined test suite directory. - Excluded SampleTest.php from the test suite.
1 parent 9400c3f commit 6648092

3 files changed

Lines changed: 387 additions & 340 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"require-dev": {
1010
"wp-cli/i18n-command": "^2.6",
1111
"wp-coding-standards/wpcs": "^3.2",
12-
"phpunit/phpunit": "^11.5",
12+
"phpunit/phpunit": "^9.6",
1313
"yoast/phpunit-polyfills": "^4.0",
1414
"brain/monkey": "^2.6",
1515
"phpcompatibility/phpcompatibility-wp": "^2.1"
@@ -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"

0 commit comments

Comments
 (0)