All notable changes of the PHPUnit 10.5 release series are documented in this file using the Keep a CHANGELOG principles.
10.5.9 - 2024-01-22
- #5676: PHPUnit's test runner overwrites custom error handler registered using
set_error_handler()
in bootstrap script
10.5.8 - 2024-01-19
- #5673: Confusing error message when migration of a configuration is requested that does not need to be migrated
10.5.7 - 2024-01-14
- #5662: PHPUnit errors out on startup when the
ctype
extension is not loaded but a polyfill for it was installed
10.5.6 - 2024-01-13
- Added the
--debug
CLI option as an alias for--no-output --log-events-text php://stdout
- #5455:
willReturnCallback()
does not pass unknown named variadic arguments to callback - #5488: Details about tests that are considered risky are not displayed when the TestDox result printer is used
- #5516: Assertions that use the
LogicalNot
constraint (assertNotEquals()
,assertStringNotContainsString()
, ...) can generate confusing failure messages - #5518: Details about deprecations, notices, and warnings are not displayed when the TestDox result printer is used
- #5574: Wrong backtrace line is reported
- #5633:
--log-events-text
and--log-events-verbose-text
CLI options do not handle absolute and relative paths - #5634: Exceptions in the destructor of a test double are ignored
- #5641: The
TestSuite
value object returned byTestSuite\Filtered::testSuite()
contains all tests instead of only the filtered tests
10.5.5 - 2023-12-27
- #5619: Reverted change introduced in PHPUnit 10.5.4 that broke backward compatibility
10.5.4 - 2023-12-27
- #5592: Error Handler prevents
error_get_last()
usage in tests - #5592:
E_USER_ERROR
does not abort test execution - #5612: Empty
<coverage>
element in XML configuration after migrating configuration - #5616: Values from data provider are not shown for failed test
- #5619: Check and restore error/exception global handlers
- #5621: Name of data set is missing from TeamCity output
10.5.3 - 2023-12-13
Test\AssertionFailed
andTest\AssertionSucceeded
eventsPHPUnit\Runner\Extension\Facade::requireExportOfObjects()
andPHPUnit\Runner\Extension\Facade::requiresExportOfObjects()
registerMockObjectsFromTestArgumentsRecursively
attribute on the<phpunit>
element of the XML configuration filePHPUnit\TextUI\Configuration\Configuration::registerMockObjectsFromTestArgumentsRecursively()
- #5614: Infinite recursion when data provider provides recursive array
10.5.2 - 2023-12-05
- #5561: JUnit XML logger does not handle assertion failures in before-test methods
- #5567: Infinite recursion when recursive / self-referencing arrays are checked whether they contain only scalar values
10.5.1 - 2023-12-01
- #5593: Return Value Generator fails to correctly create test stub for method with
static
return type declaration when used recursively - #5596:
PHPUnit\Framework\TestCase
has@internal
annotation in PHAR
10.5.0 - 2023-12-01
- #5532:
#[IgnoreDeprecations]
attribute to ignoreE_(USER_)DEPRECATED
issues on test class and test method level - #5551: Support for omitting parameter default values for
willReturnMap()
- #5577:
--composer-lock
CLI option for PHAR binary that displays thecomposer.lock
used to build the PHAR
MockBuilder::disableAutoReturnValueGeneration()
andMockBuilder::enableAutoReturnValueGeneration()
are no longer deprecated
- #5563:
createMockForIntersectionOfInterfaces()
does not automatically register mock object for expectation verification