wordpress/composer.json
Sergey Biryukov f2302a3112 Build/Test Tools: Check if all the required PHP extensions are loaded before running the test suite.
Add the GD extension as a hard requirement.

This improves the reliability of the test suite and ensures that if the test infrastructure changes in the future and a platform requirement such as GD accidentally gets removed, the tests fail with an appropriate error message.

Follow-up to [48592].

Props ayeshrajans, jrf, johnbillion.
Fixes #50640.

git-svn-id: https://develop.svn.wordpress.org/trunk@49535 602fd350-edb4-49c9-b593-d223f7449a82
2020-11-07 13:18:24 +00:00

44 lines
1.6 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": "^7.5",
"ext-gd": "*"
},
"autoload-dev": {
"files": [
"tests/phpunit/includes/phpunit7/MockObject/Builder/NamespaceMatch.php",
"tests/phpunit/includes/phpunit7/MockObject/Builder/ParametersMatch.php",
"tests/phpunit/includes/phpunit7/MockObject/InvocationMocker.php",
"tests/phpunit/includes/phpunit7/MockObject/MockMethod.php"
],
"exclude-from-classmap": [
"vendor/phpunit/phpunit/src/Framework/MockObject/Builder/NamespaceMatch.php",
"vendor/phpunit/phpunit/src/Framework/MockObject/Builder/ParametersMatch.php",
"vendor/phpunit/phpunit/src/Framework/MockObject/InvocationMocker.php",
"vendor/phpunit/phpunit/src/Framework/MockObject/MockMethod.php"
]
},
"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"
}
}