Build/Test Tools: Add PHPUnit to Composer dev dependencies.
This helps setting up the correct version of PHPUnit to run WordPress core tests locally and for using it as source for code autocompletion in tests. Also introduces a new Composer script `test` to run the PHPUnit tests. Props welcher, ayeshrajans, vinkla, johnbillion, Rarst, netweb, ocean90. Fixes #46815. git-svn-id: https://develop.svn.wordpress.org/trunk@47881 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
178eeaf57e
commit
7a6b6e1153
@ -15,12 +15,14 @@
|
||||
"require-dev": {
|
||||
"dealerdirect/phpcodesniffer-composer-installer": "~0.6.0",
|
||||
"wp-coding-standards/wpcs": "~2.1.0",
|
||||
"phpcompatibility/phpcompatibility-wp": "^2.1.0"
|
||||
"phpcompatibility/phpcompatibility-wp": "^2.1.0",
|
||||
"phpunit/phpunit": "^5.7 || ^6.5 || ^7.5"
|
||||
},
|
||||
"scripts": {
|
||||
"compat": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --standard=phpcompat.xml.dist --report=summary,source",
|
||||
"format": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf --report=summary,source",
|
||||
"lint": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --report=summary,source",
|
||||
"lint:errors": "@lint -n"
|
||||
"lint:errors": "@lint -n",
|
||||
"test": "@php ./vendor/phpunit/phpunit/phpunit"
|
||||
}
|
||||
}
|
||||
|
1548
composer.lock
generated
1548
composer.lock
generated
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user