Update dependency yoast/phpunit-polyfills to v2 #1137
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
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"
.Changelog
Added
Yoast\PHPUnitPolyfills\Polyfills\AssertIgnoringLineEndings
trait to polyfill theAssert::assertStringEqualsStringIgnoringLineEndings()
and theAssert::assertStringContainsStringIgnoringLineEndings()
methods as introduced in PHPUnit 10.0.0. PR #109.Yoast\PHPUnitPolyfills\Polyfills\AssertIsList
trait to polyfill theAssert::assertIsList()
method as introduced in PHPUnit 10.0.0. PR #110.Yoast\PHPUnitPolyfills\Polyfills\AssertObjectProperty
trait to polyfill theAssert::assertObjectHasProperty()
and theAssert::assertObjectNotHasProperty()
methods as introduced in PHPUnit 10.1.0. PR #116.Changed
final
. This alignes them with the same change made upstream in PHPUnit 10.0.0. PR #104.Removed
Yoast\PHPUnitPolyfills\Polyfills\ExpectPHPException
trait. PR #108.The trait has been removed completely as PHPUnit 10 no longer supports this functionality.
Yoast\PHPUnitPolyfills\Polyfills\AssertNumericType
trait which is no longer needed now support for PHPUnit < 5.7 has been dropped. PR #102.Yoast\PHPUnitPolyfills\Polyfills\ExpectException
trait which is no longer needed now support for PHPUnit < 5.7 has been dropped. PR #102.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
$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
develop
branch has been removed. Development will now take place in the1.x
and2.x
branches.v1.0.4
Compare Source
This is a maintenance release.
Changed
Yoast\PHPUnitPolyfills\Autoload
class is nowfinal
. PR #77.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.
This PR has been generated by Mend Renovate. View repository job log here.