mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-22 02:53:43 +03:00
Update to PHPUnit 9 for PHP 8 compatibility
This commit is contained in:
parent
3f96573795
commit
87979f588f
|
@ -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
1549
composer.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -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();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue