Composer: Document why PHPUnit 7 is used instead of 8.

This commit is contained in:
Ian Dunn 2019-10-24 10:53:28 -07:00
parent 157b73e13f
commit 6fe5a92c7b
No known key found for this signature in database
GPG key ID: 99B971B50343CBCB

View file

@ -15,7 +15,9 @@
"process-timeout": 0 "process-timeout": 0
}, },
"require" : { }, "require" : {},
"_comment" : "PHPUnit 7.x is the latest version that's compatible with Core, see https://core.trac.wordpress.org/ticket/46149",
"require-dev" : { "require-dev" : {
"phpunit/phpunit" : "^7", "phpunit/phpunit" : "^7",
"spatie/phpunit-watcher" : "^1.12" "spatie/phpunit-watcher" : "^1.12"
@ -24,9 +26,7 @@
"scripts" : { "scripts" : {
"test" : "vendor/bin/phpunit", "test" : "vendor/bin/phpunit",
"_comment" : "Input won't work when running this via `composer test:watch`. If you want to use", "_comment" : "Input won't work when running this via `composer test:watch`. If you want to use PHPUnit Watcher's interactive options then you'll need to call it directly in your terminal. See https://github.com/composer/composer/issues/5856",
"_comment" : "PHPUnit Watcher's interactive options then you'll need to call it directly in your terminal.",
"_comment" : "See https://github.com/composer/composer/issues/5856",
"test:watch" : "vendor/bin/phpunit-watcher watch" "test:watch" : "vendor/bin/phpunit-watcher watch"
} }
} }