#5690: Backward Compatibility break in PHPUnit\Framework\Constraint\Constraint
[11.0.0] - 2024-02-02
Added
#4964: Enable named data sets with the #[TestWith*] attributes
#5225: Allow providing named arguments from a data provider
#5600: Assertions for comparing arrays while ignoring a specified list of keys
#5605: expectUserDeprecationMessage() and expectUserDeprecationMessageMatches() for expecting E_USER_DEPRECATED issues
#5620: Implement group attribute on <directory> and <file> elements (children of <testsuite>) to add all tests found in a directory or file to a specified group
#5629: --exclude-filter CLI option for excluding tests from execution
#5642: --list-test-files CLI option to print the list of test files
Changed
#5213: Make TestCase methods protected that should have been protected all along
#5254: Make TestCase methods final that should have been final all along
#5619: Check and restore error/exception global handlers
The format of the XML document generated using the --list-tests-xml CLI option has been changed
small, medium, and large can no longer be used as group names with the #[Group] attribute
A test can no longer be part of multiple test suites that are configured in the XML configuration file
--check-version now exits with a shell exit code that indicates failure when the version is not the latest version
#5214: TestCase::iniSet() (this method was already soft-deprecated in PHPUnit 10)
#5216: TestCase::setLocale() (this method was already soft-deprecated in PHPUnit 10)
#5240: TestCase::createTestProxy() (this method was already soft-deprecated in PHPUnit 10)
#5241: TestCase::getMockForAbstractClass() (this method was already soft-deprecated in PHPUnit 10)
#5242: TestCase::getMockFromWsdl() (this method was already soft-deprecated in PHPUnit 10)
#5243: TestCase::getMockForTrait() (this method was already soft-deprecated in PHPUnit 10)
#5244: TestCase::getObjectForTrait() (this method was already soft-deprecated in PHPUnit 10)
#5305: MockBuilder::getMockForAbstractClass() (this method was already soft-deprecated in PHPUnit 10)
#5306: MockBuilder::getMockForTrait() (this method was already soft-deprecated in PHPUnit 10)
#5307: MockBuilder::enableProxyingToOriginalMethods(), MockBuilder::disableProxyingToOriginalMethods(), and MockBuilder::setProxyTarget() (these methods were already soft-deprecated in PHPUnit 10)
#5308: MockBuilder::allowMockingUnknownTypes() and MockBuilder::disallowMockingUnknownTypes() (these methods were already soft-deprecated in PHPUnit 10)
#5309: MockBuilder::enableAutoload() and MockBuilder::disableAutoload() (these methods were already soft-deprecated in PHPUnit 10)
#5315: MockBuilder::enableArgumentCloning() and MockBuilder::disableArgumentCloning() (these methods were already soft-deprecated in PHPUnit 10)
#5320: MockBuilder::addMethods() (this method was already soft-deprecated in PHPUnit 10)
#5415: Support for doubling interfaces (or classes) that have a method named method
#5423: TestCase::returnValue(), TestCase::onConsecutiveCalls(), TestCase::returnValueMap(), TestCase::returnArgument(), TestCase::returnSelf(), and TestCase::returnCallback() (these methods were already soft-deprecated in PHPUnit 10)
#5472: assertStringNotMatchesFormat() and assertStringNotMatchesFormatFile() (these methods were already soft-deprecated in PHPUnit 10)
#5535: Configuring expectations using expects() on test stubs
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 show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@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 phpunit/phpunit to permit the latest version.
Changelog
Sourced from phpunit/phpunit's changelog.
... (truncated)
Commits
f6a1f7c
Closes #5690ece3536
Prepare release38a61e7
Update dependenciesc9f35fe
Merge branch '10.5'204079a
Add tests83443c7
Fix typo280b0e9
Merge branch '10.5'd81284d
Merge branch '9.6' into 10.5a34291c
Merge branch '8.5' into 9.6ac22e21
BumpDependabot 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 show