#5423: TestCase::throwException() is no longer deprecated
#5425: InvocationMocker::willReturnOnConsecutiveCalls() is no longer deprecated
#5444: MockBuilder::setMockClassName() is no longer deprecated
[10.3.1] - 2023-08-04
Fixed
#5459: assertStringMatchesFormat() should allow string type (not non-empty-string) for $actual parameter
[10.3.0] - 2023-08-04
Added
#5368: Control when PHP's garbage collector is triggered
#5428: Attribute #[WithoutErrorHandler] to disable PHPUnit's error handler for a test method
#5431: Add more garbage collector details to event telemetry
Changed
Errors (E_USER_ERROR), deprecations (E_DEPRECATED, E_USER_DEPRECATED), notices (E_STRICT, E_NOTICE, E_USER_NOTICE), and warnings (E_WARNING, E_USER_WARNINGS) are now displayed grouped by issue
When a test case class inherits test methods from a parent class then, by default (when no test reordering is requested), the test methods from the class that is highest in the inheritance tree (instead of the class that is lowest in the inheritance tree) are now run first
Invocation count expectation failure messages have been slightly improved
When a test case class inherits test methods from a parent class then the TestDox output for such a test case class now starts with test methods from the class that is highest in the inheritance tree (instead of the class that is lowest in the inheritance tree)
TestCase::createStub(), TestCase::createStubForIntersectionOfInterfaces(), and TestCase::createConfiguredStub() are now static (and can be used from static data provider methods)
The internal methods __phpunit_*() have been removed from the Stub and MockObject interfaces
Deprecated
#5214: Deprecate TestCase::iniSet() (this method only has a @deprecated annotation for now; using this method will trigger a deprecation warning in PHPUnit 11; this method will be removed in PHPUnit 12)
#5216: Deprecate TestCase::setLocale() (this method only has a @deprecated annotation for now; using this method will trigger a deprecation warning in PHPUnit 11; this method will be removed in PHPUnit 12)
#5421: Deprecate MockBuilder::enableAutoReturnValueGeneration() and MockBuilder::disableAutoReturnValueGeneration() (these methods only have a @deprecated annotation for now; using these methods will trigger a deprecation warning in PHPUnit 11; these methods will be removed in PHPUnit 12)
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)
Bumps phpunit/phpunit from 10.2.6 to 10.3.4.
Changelog
Sourced from phpunit/phpunit's changelog.
... (truncated)
Commits
b8d5947
Prepare releasee1079bf
Merge branch '9.6' into 10.3a122c2e
Prepare releasec340220
Update ChangeLog7acceb3
CodeCoverage: process PHP report as first in list to avoid serializing cache ...0f2594d
Update ChangeLoga3ad9d1
CodeCoverage: process PHP report as first in list to avoid serializing cache ...11453a0
Fix: Do not configure deprecated function_typehint_space fixerc70b810
List replacement for onConsecutiveCalls(), returnArgument(), returnCallback()...bdd8848
Merge branch '9.6' into 10.3Dependabot 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