Skip to content

Commit ad30c15

Browse files
Bump yoast/phpunit-polyfills from 1.1.2 to 3.0.0 (#1162)
* Bump yoast/phpunit-polyfills from 1.1.2 to 4.0.0 Bumps [yoast/phpunit-polyfills](https://github.com/Yoast/PHPUnit-Polyfills) from 1.1.2 to 4.0.0. - [Release notes](https://github.com/Yoast/PHPUnit-Polyfills/releases) - [Changelog](https://github.com/Yoast/PHPUnit-Polyfills/blob/4.x/CHANGELOG.md) - [Commits](Yoast/PHPUnit-Polyfills@1.1.2...4.0.0) --- updated-dependencies: - dependency-name: yoast/phpunit-polyfills dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Make data provider static [dependabot skip] * Add PHPUnit 10+ workaround [dependabot skip] * Temp debugging [dependabot skip] * Update workflow step [dependabot skip] * Revert "Temp debugging" This reverts commit 1cfd0eb. * Add comment * Add data provider annotation [dependabot skip] * Lint fix [dependabot skip] * Downgrade to v3 [dependabot skip] * Migrate config [dependabot skip] * Don't upgrade phpunit [dependabot skip] --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pascal Birchler <pascalb@google.com>
1 parent 48f4cde commit ad30c15

6 files changed

Lines changed: 163 additions & 119 deletions

File tree

.github/workflows/lint-and-test.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -195,25 +195,6 @@ jobs:
195195
with:
196196
composer-options: '--prefer-dist --no-scripts'
197197

198-
# Installs a different PHPUnit version depending on the WP/PHP version combo we're testing against.
199-
#
200-
# | WP / PHP | PHPUnit |
201-
# |-----------|---------|
202-
# | * / 7.2 | 8 |
203-
# | * / 7.4 | 9 |
204-
# | * / 8 | 9 |
205-
#
206-
# See https://make.wordpress.org/core/handbook/references/phpunit-compatibility-and-wordpress-versions/
207-
- name: Update PHPUnit
208-
run: |
209-
if [[ $PHP_VERSION == "7.4" || $PHP_VERSION == "8.0" || $PHP_VERSION == "8.1" || $PHP_VERSION == "8.2" || $PHP_VERSION == "8.3" || $PHP_VERSION == "8.4" ]]; then
210-
echo "Installing latest version of PHPUnit"
211-
composer update --ignore-platform-reqs --no-interaction --no-scripts yoast/phpunit-polyfills --with-dependencies
212-
fi
213-
env:
214-
WP_VERSION: ${{ matrix.wp }}
215-
PHP_VERSION: ${{ matrix.php }}
216-
217198
- name: Run tests
218199
run: |
219200
composer test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ phpcs.xml
77
phpstan.neon
88
phpunit.xml
99
phpunit-multisite.xml
10+
.phpunit.cache
1011
.phpunit.result.cache

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"swissspidy/phpstan-no-private": "^0.2.0",
2828
"szepeviktor/phpstan-wordpress": "^1.3.0",
2929
"wp-coding-standards/wpcs": "^3.1.0",
30-
"yoast/phpunit-polyfills": "^1.0.1"
30+
"yoast/phpunit-polyfills": "^3.0.0"
3131
},
3232
"config": {
3333
"allow-plugins": {

0 commit comments

Comments
 (0)