Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 14, 2025

Bumps yoast/phpunit-polyfills from 2.0.0 to 3.1.1.

Release notes

Sourced from yoast/phpunit-polyfills's releases.

3.1.1 - 2025-01-12

Fixed

  • AssertContainsOnly::assertContainsNotOnlyInstancesOf(): incorrect parameter name. PR #235

Changed

  • General housekeeping.

3.1.0 - 2025-01-08

Added

  • Yoast\PHPUnitPolyfills\Polyfills\AssertContainsOnly trait to polyfill the specialized Assert::assertContains[Not]Only*() methods as introduced in PHPUnit 11.5.0. PR #225.

Changed

  • README: fix links which were broken due to an upstream branch removal. PR #213.
  • README: fixed a few broken badges.
  • General housekeeping.

3.0.0 - 2024-09-07

PHPUnit 11 support

This release updates the PHPUnit Polyfills to allow for "writing your tests for PHPUnit 11 and running them all the way back to PHPUnit 6". [*]

Please keep in mind that the PHPUnit Polyfills provide forward-compatibility. This means that features which PHPUnit no longer supports in PHPUnit 11.x, are also no longer supported in the 3.0 release of the PHPUnit Polyfills.

Please refer to the PHPUnit 11 release notification and PHPUnit 11 changelog to inform your decision on whether or not to upgrade (yet).

Projects which don't use any of the new or removed functionality in their test suite, can, of course, use the PHPUnit Polyfills 1.x, 2.x and 3.x series side-by-side, like so composer require --dev yoast/phpunit-polyfills:"^1.0 || ^2.0 || ^3.0".

[*]: Note: Releases from the PHPUnit Polyfills 3.x branch will support running tests on PHPUnit 6.4.4 - 9.x and 11.x, but will not allow for running tests on PHPUnit 10 (for reasons explained in #200). In practical terms, the net effect of this is that tests on PHP 8.1 will run on PHPUnit 9 instead of PHPUnit 10. Other than that, there is no impact.

Changelog

Added

  • Yoast\PHPUnitPolyfills\Polyfills\AssertArrayWithListKeys trait to polyfill the Assert::assertArrayIsEqualToArrayOnlyConsideringListOfKeys(), Assert::assertArrayIsEqualToArrayIgnoringListOfKeys(), Assert::assertArrayIsIdenticalToArrayOnlyConsideringListOfKeys() and Assert::assertArrayIsIdenticalToArrayIgnoringListOfKeys() methods as introduced in PHPUnit 11.0.0. PR #198.
  • Yoast\PHPUnitPolyfills\Polyfills\ExpectUserDeprecation trait to polyfill the TestCase::expectUserDeprecationMessage() and TestCase::expectUserDeprecationMessageMatches() methods as introduced in PHPUnit 11.0.0. PR #200. These methods can largely be seen as replacements for the TestCase::expectDeprecationMessage() and TestCase::expectDeprecationMessageMatches() methods which were removed in PHPUnit 10.0, though there are significant differences between the implementation details of the old vs the new methods. Please see the README for full details.
  • Yoast\PHPUnitPolyfills\Polyfills\AssertObjectNotEquals trait to polyfill the Assert::assertObjectNotEquals() method as introduced in PHPUnit 11.2.0. PR #199.

Changed

  • Composer: allow for installation of PHPUnit 11.x and removed runtime support for PHPUnit 10.x. PR #196, #200
  • The assertion failure message for the assertIsList() method has been updated to be in sync with the latest message format as used by PHPUnit 11.3.1+. #195
  • The visibility of the expectExceptionMessageMatches() method has been changed from public to protected, in line with the same changes as per PHPUnit 11.0. #197
  • The assertObjectEquals() method polyfill now behaves the same as the PHPUnit native assertion method. PR #192 Previously a comparator method could either be compatible with PHP 5.6+ in combination with PHPUnit < 9.4.0 or with PHP 7.0+, but it wasn't possible to write a comparator method which would work in both situation due to the return type declaration requirement from PHPUnit itself. With the new PHP 7.0 minimum requirement, the return type declaration is now always required and the polyfill and the PHPUnit native method are completely aligned.
  • General housekeeping.

Removed

  • Support for PHP < 7.0. PR #192
  • Support for PHPUnit < 6.4.4. PR #193

... (truncated)

Changelog

Sourced from yoast/phpunit-polyfills's changelog.

[3.1.1] - 2025-01-12

Fixed

  • AssertContainsOnly::assertContainsNotOnlyInstancesOf(): incorrect parameter name. PR #235

Changed

  • General housekeeping.

#235: Yoast/PHPUnit-Polyfills#235

[3.1.0] - 2025-01-08

Added

  • Yoast\PHPUnitPolyfills\Polyfills\AssertContainsOnly trait to polyfill the specialized Assert::assertContains[Not]Only*() methods as introduced in PHPUnit 11.5.0. PR #225.

Changed

  • README: fix links which were broken due to an upstream branch removal. PR #213.
  • README: fixed a few broken badges.
  • General housekeeping.

#213: Yoast/PHPUnit-Polyfills#213 #225: Yoast/PHPUnit-Polyfills#225

[3.0.0] - 2024-09-07

PHPUnit 11 support

This release updates the PHPUnit Polyfills to allow for "writing your tests for PHPUnit 11 and running them all the way back to PHPUnit 6". [*]

Please keep in mind that the PHPUnit Polyfills provide forward-compatibility. This means that features which PHPUnit no longer supports in PHPUnit 11.x, are also no longer supported in the 3.0 release of the PHPUnit Polyfills.

Please refer to the PHPUnit 11 release notification and PHPUnit 11 changelog to inform your decision on whether or not to upgrade (yet).

Projects which don't use any of the new or removed functionality in their test suite, can, of course, use the PHPUnit Polyfills 1.x, 2.x and 3.x series side-by-side, like so composer require --dev yoast/phpunit-polyfills:"^1.0 || ^2.0 || ^3.0".

[*]: Note: Releases from the PHPUnit Polyfills 3.x branch will support running tests on PHPUnit 6.4.4 - 9.x and 11.x, but will not allow for running tests on PHPUnit 10 (for reasons explained in #200). In practical terms, the net effect of this is that tests on PHP 8.1 will run on PHPUnit 9 instead of PHPUnit 10. Other than that, there is no impact.

Changelog

Added

  • Yoast\PHPUnitPolyfills\Polyfills\AssertArrayWithListKeys trait to polyfill the Assert::assertArrayIsEqualToArrayOnlyConsideringListOfKeys(), Assert::assertArrayIsEqualToArrayIgnoringListOfKeys(), Assert::assertArrayIsIdenticalToArrayOnlyConsideringListOfKeys() and Assert::assertArrayIsIdenticalToArrayIgnoringListOfKeys() methods as introduced in PHPUnit 11.0.0. PR #198.
  • Yoast\PHPUnitPolyfills\Polyfills\ExpectUserDeprecation trait to polyfill the TestCase::expectUserDeprecationMessage() and TestCase::expectUserDeprecationMessageMatches() methods as introduced in PHPUnit 11.0.0. PR #200. These methods can largely be seen as replacements for the TestCase::expectDeprecationMessage() and TestCase::expectDeprecationMessageMatches() methods which were removed in PHPUnit 10.0, though there are significant differences between the implementation details of the old vs the new methods. Please see the [README for full details][readme-on-expectuserdeprecation].

... (truncated)

Commits
  • e6381c6 Merge pull request #236 from Yoast/feature/changelog-3.1.1
  • 734007d Changelog for the 3.1.1 release
  • 32aafad Merge pull request #235 from Yoast/feature/assertContainsNotOnlyInstancesOf-f...
  • b822354 AssertContainsOnly::assertContainsNotOnlyInstancesOf(): fix incorrect param name
  • 1bc0d31 Merge pull request #234 from Yoast/feature/composer-lint-scripts-cleanup
  • b818fae Composer/lint: remove redundant duplicate script
  • 33d5b8d Merge pull request #233 from Yoast/feature/cs-minor-ruleset-cleanup
  • c1d776b PHPCS: minor ruleset clean up
  • 59b3f8f Merge pull request #232 from Yoast/feature/changelog-3.1.0
  • a00799f Changelog for the 3.1.0 release
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot requested a review from a team as a code owner January 14, 2025 23:52
@dependabot dependabot bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Jan 14, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Jan 14, 2025

Composer Changes

Dev Packages Operation Base Target
myclabs/deep-copy Upgraded 1.11.1 1.12.1
nikic/php-parser Upgraded v5.0.2 v5.4.0
phpunit/php-code-coverage Upgraded 9.2.31 9.2.32
phpunit/phpunit Upgraded 9.6.18 9.6.22
symfony/polyfill-ctype Upgraded v1.29.0 v1.31.0
yoast/phpunit-polyfills Upgraded 2.0.0 3.1.1

@pwtyler
Copy link
Member

pwtyler commented Jan 15, 2025

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/composer/develop/yoast/phpunit-polyfills-3.1.1 branch from b259598 to 2043eb2 Compare January 15, 2025 00:15
@jazzsequence jazzsequence merged commit 9d12ebe into develop Jan 17, 2025
15 checks passed
@jazzsequence jazzsequence deleted the dependabot/composer/develop/yoast/phpunit-polyfills-3.1.1 branch January 17, 2025 17:17
jazzsequence added a commit that referenced this pull request Sep 17, 2025
* Prepare 1.4.4-dev

* Bump pantheon-systems/wpunit-helpers from 2.0.0 to 2.0.2 (#305)

Bumps [pantheon-systems/wpunit-helpers](https://github.com/pantheon-systems/wpunit-helpers) from 2.0.0 to 2.0.2.
- [Release notes](https://github.com/pantheon-systems/wpunit-helpers/releases)
- [Commits](pantheon-systems/wpunit-helpers@v2.0.0...v2.0.2)

---
updated-dependencies:
- dependency-name: pantheon-systems/wpunit-helpers
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump pantheon-systems/pantheon-wp-coding-standards from 2.0.1 to 2.0.3 (#304)

Bumps [pantheon-systems/pantheon-wp-coding-standards](https://github.com/pantheon-systems/Pantheon-WP-Coding-Standards) from 2.0.1 to 2.0.3.
- [Release notes](https://github.com/pantheon-systems/Pantheon-WP-Coding-Standards/releases)
- [Commits](pantheon-systems/Pantheon-WP-Coding-Standards@2.0.1...2.0.3)

---
updated-dependencies:
- dependency-name: pantheon-systems/pantheon-wp-coding-standards
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump yoast/phpunit-polyfills from 2.0.0 to 3.1.1 (#306)

Bumps [yoast/phpunit-polyfills](https://github.com/Yoast/PHPUnit-Polyfills) from 2.0.0 to 3.1.1.
- [Release notes](https://github.com/Yoast/PHPUnit-Polyfills/releases)
- [Changelog](https://github.com/Yoast/PHPUnit-Polyfills/blob/3.x/CHANGELOG.md)
- [Commits](Yoast/PHPUnit-Polyfills@2.0.0...3.1.1)

---
updated-dependencies:
- dependency-name: yoast/phpunit-polyfills
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump yoast/phpunit-polyfills from 3.1.1 to 4.0.0 (#307)

Bumps [yoast/phpunit-polyfills](https://github.com/Yoast/PHPUnit-Polyfills) from 3.1.1 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@3.1.1...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] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Updates readme files

* Updates tested up in readme.txt

* Updates readme for blank line

* Adds php 8.4 in the lint test

* Updates readme files

* Updates readme

* Updates readme

* SITE-5253 Update plugin name (#312)

* update plugin name

* update changelog

* bump version

* install wp unit tests

* set scripts to executable

* use the composer test script

* install svn

* install wp-cli

* bump mariadb version

* set password to empty string

* create the database in setup

* use mysql command instead of mariadb

* update the password after database creation

* use root@localhost

* bump tested up to

* update behat upstream tests

* Bump pantheon-systems/wpunit-helpers from 2.0.2 to 2.0.3 (#311)

Bumps [pantheon-systems/wpunit-helpers](https://github.com/pantheon-systems/wpunit-helpers) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/pantheon-systems/wpunit-helpers/releases)
- [Commits](pantheon-systems/wpunit-helpers@v2.0.2...v2.0.3)

---
updated-dependencies:
- dependency-name: pantheon-systems/wpunit-helpers
  dependency-version: 2.0.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump pantheon-systems/pantheon-wp-coding-standards from 2.0.3 to 3.0.1 (#310)

* Bump pantheon-systems/pantheon-wp-coding-standards from 2.0.3 to 3.0.1

Bumps [pantheon-systems/pantheon-wp-coding-standards](https://github.com/pantheon-systems/Pantheon-WP-Coding-Standards) from 2.0.3 to 3.0.1.
- [Release notes](https://github.com/pantheon-systems/Pantheon-WP-Coding-Standards/releases)
- [Commits](pantheon-systems/Pantheon-WP-Coding-Standards@2.0.3...3.0.1)

---
updated-dependencies:
- dependency-name: pantheon-systems/pantheon-wp-coding-standards
  dependency-version: 3.0.1
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* linting fixes

* need to use 2.0 coding standards for php 7.4

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chris Reynolds <[email protected]>

* Update mu suggestion to be more defensive (#308)

* Update README.md

* update changelog

* (somewhat) arbitrary change to kick the codeql checks
we actually use main and release not develop and main.

---------

Co-authored-by: Chris Reynolds <[email protected]>

* Potential fix for code scanning alert no. 7: Workflow does not contain permissions (#313)

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Release 1.4.4

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Phil Tyler <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: anaispantheor <[email protected]>
Co-authored-by: Chris Reynolds <[email protected]>
Co-authored-by: Chris Reynolds <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Pantheon Automation <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants