Skip to content

Commit 9fcba74

Browse files
committed
test: adding phpunit tests
1 parent 6e82359 commit 9fcba74

File tree

6 files changed

+1726
-86
lines changed

6 files changed

+1726
-86
lines changed

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
},
3131
"scripts": {
3232
"format": "phpcbf --standard=phpcs.xml --report-summary --report-source",
33-
"lint": "phpcs --standard=phpcs.xml"
33+
"lint": "phpcs --standard=phpcs.xml",
34+
"test": "phpunit"
3435
},
3536
"minimum-stability": "dev",
3637
"prefer-stable": true,
@@ -46,6 +47,7 @@
4647
"require-dev": {
4748
"wp-coding-standards/wpcs": "^3.1",
4849
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
49-
"phpcompatibility/phpcompatibility-wp": "^2.1"
50+
"phpcompatibility/phpcompatibility-wp": "^2.1",
51+
"yoast/phpunit-polyfills": "^3.0"
5052
}
5153
}

0 commit comments

Comments
 (0)