Update to PHPUnit 9 for PHP 8 compatibility

This commit is contained in:
Ian Dunn 2022-07-19 09:33:34 -07:00
parent 3f96573795
commit 87979f588f
No known key found for this signature in database
GPG key ID: 99B971B50343CBCB
3 changed files with 1143 additions and 412 deletions

View file

@ -8,7 +8,7 @@
}, },
"config": { "config": {
"platform": { "platform": {
"php": "7.2" "php": "7.4"
}, },
"vendor-dir": "mu-plugins/vendor", "vendor-dir": "mu-plugins/vendor",
"_comment": "Work around `test:watch` timeout, see https://github.com/spatie/phpunit-watcher/issues/63#issuecomment-545633709", "_comment": "Work around `test:watch` timeout, see https://github.com/spatie/phpunit-watcher/issues/63#issuecomment-545633709",
@ -19,7 +19,7 @@
"require-dev" : { "require-dev" : {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"wp-coding-standards/wpcs": "2.3.*", "wp-coding-standards/wpcs": "2.3.*",
"phpunit/phpunit": "^7", "phpunit/phpunit": "^9",
"spatie/phpunit-watcher": "^1.23", "spatie/phpunit-watcher": "^1.23",
"yoast/phpunit-polyfills": "^1.0" "yoast/phpunit-polyfills": "^1.0"
}, },

1549
composer.lock generated

File diff suppressed because it is too large Load diff

View file

@ -52,7 +52,7 @@ class Test_Auth extends WP_UnitTestCase {
/** /**
* Setup fixtures that are unique for each test. * Setup fixtures that are unique for each test.
*/ */
public function setUp() { protected function setUp() : void {
parent::setUp(); parent::setUp();
/* /*