Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency yoast/phpunit-polyfills to v3 #335

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

abrain-bot
Copy link
Collaborator

@abrain-bot abrain-bot commented Sep 7, 2024

This PR contains the following updates:

Package Type Update Change
yoast/phpunit-polyfills require-dev major 2.0.2 -> 3.0.0

Release Notes

Yoast/PHPUnit-Polyfills (yoast/phpunit-polyfills)

v3.0.0

Compare Source

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.
  • The Yoast\PHPUnitPolyfills\Helpers\AssertAttributeHelper trait. PR #​194.
    This "helper" was only intended as a temporary measure to buy people some more time to refactor their tests.
  • The Yoast\PHPUnitPolyfills\Polyfills\ExpectExceptionObject trait which is no longer needed now support for PHPUnit < 6.4 has been dropped. PR #​193.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

Copy link

codecov bot commented Sep 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 29.31%. Comparing base (dcd9831) to head (e9a275a).
Report is 2 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #335   +/-   ##
==========================================
  Coverage      29.31%   29.31%           
  Complexity      1642     1642           
==========================================
  Files             83       83           
  Lines           6597     6597           
==========================================
  Hits            1934     1934           
  Misses          4663     4663           
Flag Coverage Δ
integration 10.86% <ø> (ø)
unit 19.64% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@abrain-bot abrain-bot force-pushed the renovate/yoast-phpunit-polyfills-3.x branch from e31e18b to cd96524 Compare September 27, 2024 08:27
@abrain-bot abrain-bot force-pushed the renovate/yoast-phpunit-polyfills-3.x branch 2 times, most recently from 043a883 to 87231fa Compare October 24, 2024 18:27
@abrain-bot abrain-bot force-pushed the renovate/yoast-phpunit-polyfills-3.x branch from 87231fa to 49ab362 Compare November 1, 2024 13:27
@abrain-bot abrain-bot force-pushed the renovate/yoast-phpunit-polyfills-3.x branch from 49ab362 to e9a275a Compare November 2, 2024 20:27
@abrain abrain merged commit ae22428 into develop Nov 4, 2024
8 checks passed
@abrain-bot abrain-bot deleted the renovate/yoast-phpunit-polyfills-3.x branch November 4, 2024 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants