summaryrefslogtreecommitdiffstats
path: root/composer.json
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-11-26 08:33:53 +0100
committerRemi Collet <remi@remirepo.net>2020-11-26 08:33:53 +0100
commitce7a71c1c059d90399c31c5fe22d8f328e33070e (patch)
treeae41c606322946bc7e1a213be7686eb0ad28662d /composer.json
new package
Diffstat (limited to 'composer.json')
-rw-r--r--composer.json71
1 files changed, 71 insertions, 0 deletions
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..ece8171
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,71 @@
+{
+ "name": "yoast/phpunit-polyfills",
+ "description": "Set of polyfills for changed PHPUnit functionality to allow for creating PHPUnit cross-version compatible tests",
+ "type": "library",
+ "keywords": [ "phpunit", "polyfill", "testing" ],
+ "license": "BSD-3-Clause",
+ "homepage": "https://github.com/Yoast/PHPUnit-Polyfills",
+ "authors": [
+ {
+ "name" : "Team Yoast",
+ "email" : "support@yoast.com",
+ "homepage": "https://yoast.com"
+ },
+ {
+ "name" : "Contributors",
+ "homepage": "https://github.com/Yoast/PHPUnit-Polyfills/graphs/contributors"
+ }
+ ],
+ "support": {
+ "issues": "https://github.com/Yoast/PHPUnit-Polyfills/issues",
+ "source": "https://github.com/Yoast/PHPUnit-Polyfills"
+ },
+ "minimum-stability": "dev",
+ "prefer-stable": true,
+ "require": {
+ "php": ">=5.5",
+ "phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0"
+ },
+ "require-dev": {
+ "php-parallel-lint/php-parallel-lint": "^1.2.0",
+ "php-parallel-lint/php-console-highlighter": "^0.5",
+ "yoast/yoastcs": "^2.1.0"
+ },
+ "autoload": {
+ "files": ["phpunitpolyfills-autoload.php"]
+ },
+ "autoload-dev" : {
+ "psr-4": {
+ "Yoast\\PHPUnitPolyfills\\Tests\\": "tests/"
+ }
+ },
+ "extra": {
+ "branch-alias": {
+ "dev-main": "1.x-dev",
+ "dev-develop": "1.x-dev"
+ }
+ },
+ "scripts": {
+ "lint": [
+ "@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --exclude vendor --exclude .git"
+ ],
+ "lint-lt71": [
+ "@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --exclude vendor --exclude .git --exclude src/TestCases/TestCasePHPUnitGte8.php --exclude src/TestListeners/TestListenerDefaultImplementationPHPUnitGte7.php"
+ ],
+ "check-cs": [
+ "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs"
+ ],
+ "fix-cs": [
+ "@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf"
+ ],
+ "test": [
+ "@php ./vendor/phpunit/phpunit/phpunit --no-coverage"
+ ],
+ "coverage": [
+ "@php ./vendor/phpunit/phpunit/phpunit"
+ ],
+ "coverage-local": [
+ "@php ./vendor/phpunit/phpunit/phpunit --coverage-html ./build/coverage-html"
+ ]
+ }
+}