All notable changes of the PHPUnit 13.1 release series are documented in this file using the Keep a CHANGELOG principles.
13.1.0 - 2026-04-03
- #6501: Include unexpected output in Open Test Reporting (OTR) XML logfile
- #6517:
includeInCodeCoverageattribute for<directory>and<file>children of<source> - #6523: Include
#[Group]information in Open Test Reporting (OTR) XML logfile - #6524: Report issues in Open Test Reporting (OTR) XML logfile
- #6526: Introduce
#[DataProviderClosure]for static closures - Support for configuring HTML code coverage report options (colors, thresholds, custom CSS) in XML configuration file without requiring an
outputDirectoryattribute, allowing the output directory to be specified later with the--coverage-htmlCLI option - #6530: Support for custom issue trigger resolvers that can be configured using
<issueTriggerResolvers>in the XML configuration file - Support for configuring dark mode colors, progress bar colors, and breadcrumb colors for HTML code coverage reports in the XML configuration file
- Improved failure message for mock object expectations
- The HTML code coverage report now uses a more colorblind-friendly blue/amber/orange palette by default
- Extracted
PHPUnit\Runner\Extension\Facadefrom a concrete class to an interface and introduced an internalExtensionFacadeimplementation, so that extensions only depend on theFacadeinterface while PHPUnit internally uses theExtensionFacadeclass that also provides query methods