Pink-Crab / Perique-Framework

The Perqiue Plugin Framework for WordPress
5 stars 0 forks source link

Update yoast/phpunit-polyfills requirement from ^1.0.0 to ^1.0.0 || ^2.0.0 #163

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Updates the requirements on yoast/phpunit-polyfills to permit the latest version.

Release notes

Sourced from yoast/phpunit-polyfills's releases.

2.0.0

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".

:warning: Important: about the TestListener polyfill :warning:

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.

#102: Yoast/PHPUnit-Polyfills#102 #104: Yoast/PHPUnit-Polyfills#104 #108: Yoast/PHPUnit-Polyfills#108 #109: Yoast/PHPUnit-Polyfills#109 #110: Yoast/PHPUnit-Polyfills#110 #116: Yoast/PHPUnit-Polyfills#116

... (truncated)

Changelog

Sourced from yoast/phpunit-polyfills's changelog.

[2.0.0] - 2023-06-06

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".

:warning: Important: about the TestListener polyfill :warning:

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.

#102: Yoast/PHPUnit-Polyfills#102 #104: Yoast/PHPUnit-Polyfills#104 #108: Yoast/PHPUnit-Polyfills#108 #109: Yoast/PHPUnit-Polyfills#109 #110: Yoast/PHPUnit-Polyfills#110

... (truncated)

Commits
  • c758753 Merge pull request #133 from Yoast/2.x
  • cf3c4bf Merge pull request #132 from Yoast/2.0/update-readme-changelog
  • 182fc50 Changelog for the 2.0.0 release
  • 38e8a94 README: update
  • 1521f98 Merge branch '1.x' into 2.x
  • f4c425a Merge pull request #131 from Yoast/feature/remarklint-ignore-release-compare-...
  • 9aa4e26 RemarkLint: ignore version release compare links
  • 113223f Merge pull request #130 from Yoast/2.0/phpunit-10/update-environment-and-ci
  • 2462abe Tests: fail test runs on deprecations/notices/warnings
  • 235514b CI: update for PHPUnit 10.0.0 support
  • Additional commits viewable in compare view


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 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)
codecov[bot] commented 1 year ago

Codecov Report

Merging #163 (0488bf2) into master (9d7a2c8) will not change coverage. The diff coverage is n/a.

:exclamation: Current head 0488bf2 differs from pull request most recent head d77418b. Consider uploading reports for the commit d77418b to get more accurate results

@@             Coverage Diff             @@
##              master      #163   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity       241       241           
===========================================
  Files             22        22           
  Lines            612       612           
===========================================
  Hits             612       612           

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more