7a6b6e1153
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
29 lines
982 B
JSON
29 lines
982 B
JSON
{
|
|
"name": "wordpress/wordpress",
|
|
"license": "GPL-2.0-or-later",
|
|
"description": "WordPress is open source software you can use to create a beautiful website, blog, or app.",
|
|
"homepage": "https://wordpress.org",
|
|
"keywords": [
|
|
"blog", "cms", "wordpress", "wp"
|
|
],
|
|
"support": {
|
|
"issues": "https://core.trac.wordpress.org/"
|
|
},
|
|
"require": {
|
|
"php": ">=5.6"
|
|
},
|
|
"require-dev": {
|
|
"dealerdirect/phpcodesniffer-composer-installer": "~0.6.0",
|
|
"wp-coding-standards/wpcs": "~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",
|
|
"test": "@php ./vendor/phpunit/phpunit/phpunit"
|
|
}
|
|
}
|