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

Update dependency yoast/phpunit-polyfills to v2 #1137

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 31, 2023

Mend Renovate

This PR contains the following updates:

Package Type Update Change
yoast/phpunit-polyfills require-dev major 1.0.3 -> 2.0.0

Release Notes

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

v2.0.0

Compare Source

PHPUnit 10 support

This release updates the PHPUnit Polyfills to allow for "writing your tests for PHPUnit 10 and running them all the way back to PHPUnit 5".

Please keep in mind that the PHPUnit Polyfills provide forward-compatibility. This means that features which PHPUnit no longer supports in PHPUnit 10.x, like expecting PHP deprecation notices or warnings, are also no longer supported in the 2.0 release of the PHPUnit Polyfills.

Please refer to the PHPUnit 10 release notification and PHPUnit 10 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 and 2.x series side-by-side, like so composer require --dev yoast/phpunit-polyfills:"^1.0 || ^2.0".

⚠️ Important: about the TestListener polyfill ⚠️

The TestListener polyfill in PHPUnit Polyfills 2.0 is not (yet) compatible with PHPUnit 10.0.0.

If you need the TestListener polyfill, it is recommended to stay on the PHPUnit Polyfills 1.x series for the time being and to watch the related ticket.

Changelog
Added
  • Yoast\PHPUnitPolyfills\Polyfills\AssertIgnoringLineEndings trait to polyfill the Assert::assertStringEqualsStringIgnoringLineEndings() and the Assert::assertStringContainsStringIgnoringLineEndings() methods as introduced in PHPUnit 10.0.0. PR #​109.
  • Yoast\PHPUnitPolyfills\Polyfills\AssertIsList trait to polyfill the Assert::assertIsList() method as introduced in PHPUnit 10.0.0. PR #​110.
  • Yoast\PHPUnitPolyfills\Polyfills\AssertObjectProperty trait to polyfill the Assert::assertObjectHasProperty() and the Assert::assertObjectNotHasProperty() methods as introduced in PHPUnit 10.1.0. PR #​116.
Changed
  • Composer: allow for installation of PHPUnit 10.x. PR #​130
  • Nearly all assertion methods are now final. This alignes them with the same change made upstream in PHPUnit 10.0.0. PR #​104.
  • General housekeeping.
Removed
  • Support for PHP < 5.6. PR #​102.
  • Support for PHPUnit < 5.7.21. PR #​102.
  • Support for expecting PHP deprecations, notices, warnings and error via the Yoast\PHPUnitPolyfills\Polyfills\ExpectPHPException trait. PR #​108.
    The trait has been removed completely as PHPUnit 10 no longer supports this functionality.
  • The Yoast\PHPUnitPolyfills\Polyfills\AssertNumericType trait which is no longer needed now support for PHPUnit < 5.7 has been dropped. PR #​102.
  • The Yoast\PHPUnitPolyfills\Polyfills\ExpectException trait which is no longer needed now support for PHPUnit < 5.7 has been dropped. PR #​102.
  • The Yoast\PHPUnitPolyfills\Polyfills\AssertFileDirectory trait which is no longer needed now support for PHPUnit < 5.7 has been dropped. PR #​102.

v1.0.5

Compare Source

Fixed
  • A custom $message parameter passed to an assertion, will no longer overrule an emulated "assertion failed" message, but will be prefixed to it instead. PR #​97.
    This applies to the following polyfills:
    • assertIsClosedResource()
    • assertIsNotClosedResource()
    • assertIsReadable()
    • assertNotIsReadable()
    • assertIsWritable()
    • assertNotIsWritable()
    • assertDirectoryExists()
    • assertDirectoryNotExists()
    • assertStringNotContainsString()
    • assertStringNotContainsStringIgnoringCase()
Changed
  • The develop branch has been removed. Development will now take place in the 1.x and 2.x branches.
  • README: links to the PHPUnit manual now point explicitly to the PHPUnit 9.x documentation. PR #​94.
  • README: new sub-section about PHPUnit version support. PR #​99.
  • README: various minor improvements. PRs #​92, #​93.
  • General housekeeping.

v1.0.4

Compare Source

This is a maintenance release.

Changed
  • The Yoast\PHPUnitPolyfills\Autoload class is now final. PR #​77.
  • README: clear up minor language confusion. Props [Phil E. Taylor] and [fredericgboutin-yapla] for pointing it out.
  • README: fix links which were broken due to an upstream branch rename. PR #​80.
  • Verified PHP 8.2 compatibility.
  • General housekeeping.

Configuration

📅 Schedule: Branch creation - "before 3am on Monday" (UTC), 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 Mend Renovate. View repository job log here.

@renovate renovate bot added the Renovate Renovate App label Jul 31, 2023
@deepench deepench closed this Aug 2, 2023
@renovate
Copy link
Contributor Author

renovate bot commented Aug 2, 2023

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 2.x releases. But if you manually upgrade to 2.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/yoast-phpunit-polyfills-2.x branch August 2, 2023 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Renovate Renovate App
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant