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 yoast/phpunit-polyfills requirement from ^0.2.0 to ^1.0.0 #2133

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

dependabot-preview[bot]
Copy link

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

Release notes

Sourced from yoast/phpunit-polyfills's releases.

1.0.0

Added

  • Yoast\PHPUnitPolyfills\Polyfills\AssertClosedResource trait to polyfill the Assert::assertIsClosedResource() and Assert::assertIsNotClosedResource() methods as introduced in PHPUnit 9.3.0. PR #27.
  • Yoast\PHPUnitPolyfills\Polyfills\AssertObjectEquals trait to polyfill the Assert::assertObjectEquals() method as introduced in PHPUnit 9.4.0. PR #38. The behaviour of the polyfill closely matches the PHPUnit native implementation, but is not 100% the same. Most notably, the polyfill will check the type of the returned value from the comparator method instead of enforcing a return type declaration for the comparator method.
  • Yoast\PHPUnitPolyfills\Polyfills\EqualToSpecializations trait to polyfill the Assert::equalToCanonicalizing(), Assert::equalToIgnoringCase() and Assert::equalToWithDelta() methods as introduced in PHPUnit 9.0.0. PR #28, props Marc Siegrist.
  • Polyfills for the PHP native Error and TypeError classes as introduced in PHP 7.0. PR #36.
  • README: FAQ section covering functionality removed from PHPUnit and usage with a Phar.

Changed

  • The minimum supported PHP version has been lowered to PHP 5.4 (was 5.5). PR #19.
  • XTestCase: the visibility of the setUpFixtures() and the tearDownFixtures() methods has been changed to protected (was public). Issue #10, PR #20, props Mark Baker for reporting.
  • README: re-ordered the sections and various other improvements.
  • Initial preparation for PHPUnit 10.0 compatibility.
  • General housekeeping.

Fixed

  • Issue #17 via PR #18 - AssertStringContainString: PHPUnit < 6.4.2 would throw a "mb_strpos(): empty delimiter" PHP warning when the $needle passed was an empty string. Props Gary Jones.

#10: Yoast/PHPUnit-Polyfills#10 #17: Yoast/PHPUnit-Polyfills#17 #18: Yoast/PHPUnit-Polyfills#18 #19: Yoast/PHPUnit-Polyfills#19 #20: Yoast/PHPUnit-Polyfills#20 #27: Yoast/PHPUnit-Polyfills#27 #28: Yoast/PHPUnit-Polyfills#28 #36: Yoast/PHPUnit-Polyfills#36 #38: Yoast/PHPUnit-Polyfills#38

Changelog

Sourced from yoast/phpunit-polyfills's changelog.

[1.0.0] - 2021-06-21

Added

  • Yoast\PHPUnitPolyfills\Polyfills\AssertClosedResource trait to polyfill the Assert::assertIsClosedResource() and Assert::assertIsNotClosedResource() methods as introduced in PHPUnit 9.3.0. PR #27.
  • Yoast\PHPUnitPolyfills\Polyfills\AssertObjectEquals trait to polyfill the Assert::assertObjectEquals() method as introduced in PHPUnit 9.4.0. PR #38. The behaviour of the polyfill closely matches the PHPUnit native implementation, but is not 100% the same. Most notably, the polyfill will check the type of the returned value from the comparator method instead of the enforcing a return type declaration of the comparator method.
  • Yoast\PHPUnitPolyfills\Polyfills\EqualToSpecializations trait to polyfill the Assert::equalToCanonicalizing(), Assert::equalToIgnoringCase() and Assert::equalToWithDelta() methods as introduced in PHPUnit 9.0.0. PR #28, props [Marc Siegrist].
  • Polyfills for the PHP native Error and TypeError classes as introduced in PHP 7.0. PR #36.
  • README: FAQ section covering functionality removed from PHPUnit and usage with a Phar.

Changed

  • The minimum supported PHP version has been lowered to PHP 5.4 (was 5.5). PR #19.
  • XTestCase: the visibility of the setUpFixtures() and the tearDownFixtures() methods has been changed to protected (was public). Issue #10, PR #20, props [Mark Baker] for reporting.
  • README: re-ordered the sections and various other improvements.
  • Initial preparation for PHPUnit 10.0 compatibility.
  • General housekeeping.

Fixed

  • Issue #17 via PR #18 - AssertStringContainString: PHPUnit < 6.4.2 would throw a "mb_strpos(): empty delimiter" PHP warning when the $needle passed was an empty string. Props [Gary Jones].

#10: Yoast/PHPUnit-Polyfills#10 #17: Yoast/PHPUnit-Polyfills#17 #18: Yoast/PHPUnit-Polyfills#18 #19: Yoast/PHPUnit-Polyfills#19 #20: Yoast/PHPUnit-Polyfills#20 #27: Yoast/PHPUnit-Polyfills#27 #28: Yoast/PHPUnit-Polyfills#28 #36: Yoast/PHPUnit-Polyfills#36 #38: Yoast/PHPUnit-Polyfills#38

[0.2.0] - 2020-11-25

Added

  • Yoast\PHPUnitPolyfills\TestListeners\TestListenerDefaultImplementation: a cross-version compatible base implementation for TestListeners using snake_case method names to replace the PHPUnit native method names.
  • Yoast\PHPUnitPolyfills\Helpers\AssertAttributeHelper trait containing a getProperty() and a getPropertyValue() method. This is a stop-gap solution for the removal of the PHPUnit assertAttribute*() methods in PHPUnit 9. It is strongly recommended to refactor your tests/classes in a way that protected and private properties no longer be tested directly as they should be considered an implementation detail. However, if for some reason the value of protected or private properties still needs to be tested, this helper can be used to get access to their value.
  • Yoast\PHPUnitPolyfills\Polyfills\AssertNumericType trait to polyfill the Assert::assertFinite(), Assert::assertInfinite() and Assert::assertNan() methods as introduced in PHPUnit 5.0.0.
  • Yoast\PHPUnitPolyfills\Polyfills\ExpectException trait to polyfill the TestCase::expectException(), TestCase::expectExceptionMessage(), TestCase::expectExceptionCode() and TestCase::expectExceptionMessageRegExp() methods, as introduced in PHPUnit 5.2.0 to replace the Testcase::setExpectedException() and the Testcase::setExpectedExceptionRegExp() method.
  • Yoast\PHPUnitPolyfills\Polyfills\AssertFileDirectory trait to polyfill the Assert::assertIsReadable(), Assert::assertIsWritable() methods and their file/directory based variations, as introduced in PHPUnit 5.6.0.
  • Yoast\PHPUnitPolyfills\TestCases\TestCase: support for the assertPreConditions() and assertPostConditions() methods.

Changed

  • The minimum supported PHP version has been lowered to PHP 5.5 (was 5.6).
  • The minimum supported PHPUnit version has been lowered to PHP 4.8.36 (was 5.7). Note: for PHPUnit 4, only version 4.8.36 is supported, for PHPUnit 5, only PHPUnit >= 5.7.21 is supported.
  • Readme: documentation improvements.

... (truncated)

Commits
  • 5d257d5 Merge pull request #42 from Yoast/develop
  • f74b143 Merge pull request #41 from Yoast/feature/changelog-1.0.0
  • 8982a89 Changelog for the release of version 1.0.0
  • 0c45fd3 Merge pull request #40 from Yoast/feature/autoloader-remove-use-of-dir-sep-co...
  • 2dfaea9 Autoloader: minor simplification
  • e92195b Merge pull request #39 from Yoast/feature/assertobjectequals-minor-improvement
  • a70ce16 AssertObjectEquals: improve "not boolean return value" error message
  • 9970f5f Merge pull request #38 from Yoast/feature/3-add-polyfill-assertobjectequals
  • cb1b31d AssertObjectEquals trait: polyfill the Assert::assertObjectEquals() method
  • 8dedf60 Merge pull request #37 from Yoast/feature/phpcs-fix-phpcompatibility
  • 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)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Jun 21, 2021
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant