As of version 2.15.0 of the shivammathur/setup-php action for GitHub Actions, the PHPUnit Polyfills can be installed directly from this action using the tools key.
Added
README: FAQ section about installing and using the library via the shivammathur/setup-php action. PR #52
Changed
README: minor textual clarifications and improvements. PRs #52, [$54], props [Pierre Gordon].
General housekeeping.
Fixed
Autoloader: improved compatibility with packages which create a class_alias for the PHPUnit_Runner_Version or PHPUnit\Runner\Version class. PR #59
The Yoast\PHPUnitPolyfills\Autoload class now contains a VERSION constant. Issue #46, PR #47, props [Pascal Birchler] for the suggestion.
This version constant can be used by (complex) test setups to verify that the PHPUnit Polyfills which will be loaded, comply with the version requirements for the test suite.
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.
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)
Updates the requirements on yoast/phpunit-polyfills to permit the latest version.
Release notes
Sourced from yoast/phpunit-polyfills's releases.
Changelog
Sourced from yoast/phpunit-polyfills's changelog.
... (truncated)
Commits
1a582ab
Merge pull request #61 from Yoast/develop7468775
Merge pull request #60 from Yoast/feature/changelog-1.0.2728b038
Changelog for the 1.0.2 release981f0ce
Merge pull request #59 from Yoast/feature/autoload-tweak24ea563
Autoload: improve/stabilize version check for TestCasece8ae4a
Merge pull request #57 from Yoast/feature/ghaction-php-8.1-no-longer-allowed-...fb5882d
GH Actions: start testing against PHP 8.248125fe
GH Actions: build against PHP 8.1 is no longer allowed to fail15fbc3d
Merge pull request #56 from Yoast/feature/phpunit-adjust-config77ff97b
PHPUnit: update configurationDependabot 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)