mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 04:48:25 +01:00
b10af88fef
This backports the PHPUnit Polyfills package and related test infrastructure changes to make it easier for developers to continue testing on multiple versions WordPress while adding tests for newer versions of PHP, which require more modern PHPUnit practices. One of the changes included is the addition of wrappers for the new snake_case fixture methods in PHPUnit. This allows the native camelCase standard in PHPUnit to be used, but allows for developers to transition to the new naming conventions. Props hellofromTonya, jrf, SergeyBiryukov, johnbillion, netweb, schlessera, jeherve, lucatume, desrosj. Merges [51559,51560,51810-51813,51828] to the 5.5 branch. See #53911. git-svn-id: https://develop.svn.wordpress.org/branches/5.5@51843 602fd350-edb4-49c9-b593-d223f7449a82
30 lines
1.0 KiB
JSON
30 lines
1.0 KiB
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.2 || ^0.7.0",
|
|
"wp-coding-standards/wpcs": "~2.3.0",
|
|
"phpcompatibility/phpcompatibility-wp": "^2.1.0",
|
|
"phpunit/phpunit": "^5.7.21 || ^6.5 || ^7.5",
|
|
"yoast/phpunit-polyfills": "^1.0.1"
|
|
},
|
|
"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"
|
|
}
|
|
}
|