Releases: sebastianbergmann/phpunit
Releases · sebastianbergmann/phpunit
PHPUnit 11.3.3
Added
- #5937:
failOnPhpunitDeprecationattribute on the<phpunit>element of the XML configuration file and--fail-on-phpunit-deprecationCLI option for controlling whether PHPUnit deprecations should be considered when determining the test runner's shell exit code (default: do not consider) displayDetailsOnPhpunitDeprecationsattribute on the<phpunit>element of the XML configuration file and--display-phpunit-deprecationsCLI option for controlling whether details on PHPUnit deprecations should be displayed (default: do not display)
Changed
- #5937: PHPUnit deprecations will, by default, no longer affect the test runner's shell exit code. This can optionally be turned back on using the
--fail-on-phpunit-deprecationCLI option or thefailOnPhpunitDeprecation="true"attribute on the<phpunit>element of the XML configuration file. - Details for PHPUnit deprecations will, by default, no longer be displayed. This can optionally be turned back on using the
--display-phpunit-deprecationsCLI option or thedisplayDetailsOnPhpunitDeprecationsattribute on the<phpunit>element of the XML configuration file.
PHPUnit 10.5.32
Added
- #5937:
failOnPhpunitDeprecationattribute on the<phpunit>element of the XML configuration file and--fail-on-phpunit-deprecationCLI option for controlling whether PHPUnit deprecations should be considered when determining the test runner's shell exit code (default: do not consider) displayDetailsOnPhpunitDeprecationsattribute on the<phpunit>element of the XML configuration file and--display-phpunit-deprecationsCLI option for controlling whether details on PHPUnit deprecations should be displayed (default: do not display)
Changed
- #5937: PHPUnit deprecations will, by default, no longer affect the test runner's shell exit code. This can optionally be turned back on using the
--fail-on-phpunit-deprecationCLI option or thefailOnPhpunitDeprecation="true"attribute on the<phpunit>element of the XML configuration file. - Details for PHPUnit deprecations will, by default, no longer be displayed. This can optionally be turned back on using the
--display-phpunit-deprecationsCLI option or thedisplayDetailsOnPhpunitDeprecationsattribute on the<phpunit>element of the XML configuration file.
PHPUnit 11.3.2
Changed
- #5931:
nameproperty on<testsuites>element in JUnit XML logfile - Removed
.phpstorm.meta.phpfile as methods such asTestCase::createStub()use generics / template types for their return types and PhpStorm, for example, uses that information
Fixed
- #5884: TestDox printer does not consider that issues can be suppressed by attribute, baseline, source location, or
@operator
PHPUnit 10.5.31
Changed
- #5931:
nameproperty on<testsuites>element in JUnit XML logfile - Removed
.phpstorm.meta.phpfile as methods such asTestCase::createStub()use generics / template types for their return types and PhpStorm, for example, uses that information
Fixed
- #5884: TestDox printer does not consider that issues can be suppressed by attribute, baseline, source location, or
@operator
PHPUnit 11.3.1
Changed
- Improved how objects are handled for some assertion failure messages
PHPUnit 10.5.30
Changed
- Improved error message when stubbed method is called more often than return values were configured for it
PHPUnit 11.3.0
Added
- #5869:
shortenArraysForExportThresholdattribute on the<phpunit>element of the XML configuration file to limit the export of arrays to a specified number of elements (default:0/ do not limit the export of arrays) - #5885: Optionally repeat TestDox output for non-successful tests after the regular TestDox output
- #5890: Priority for hook methods
- #5906:
--extensionCLI option to register a test runner extension
Changed
- #5856: When the test runner is configured to fail on deprecations, notices, warnings, incomplete tests, or skipped tests then details for tests that triggered deprecations, notices, or warnings as well as tests that were marked as incomplete or skipped are always shown, respectively
- #5869: The configuration file generated using
--generate-configurationnow limits the export of arrays to 10 elements in order to improve performance
PHPUnit 11.2.9
PHPUnit 10.5.29
PHPUnit 11.2.8
Fixed
- #5898:
Test\Passedevent is not emitted for PHPT tests --coverage-filterCLI option could not be used multiple times