Releases: sebastianbergmann/phpunit
Releases · sebastianbergmann/phpunit
PHPUnit 11.3.6
PHPUnit 10.5.35
PHPUnit 9.6.21
Changed
- #5956: Deprecation of the
E_STRICT
constant in PHP 8.4 - Removed
.phpstorm.meta.php
file as methods such asTestCase::createStub()
use generics / template types for their return types and PhpStorm, for example, uses that information
PHPUnit 8.5.40
Changed
- #5956: Deprecation of the
E_STRICT
constant in PHP 8.4 - Removed
.phpstorm.meta.php
file as methods such asTestCase::createStub()
use generics / template types for their return types and PhpStorm, for example, uses that information
PHPUnit 11.3.5
Fixed
- #5874: Test Stub generated by return value generator for doubled method with
static
return type declaration is not properly initialized - #5931: Reverted addition of
name
property on<testsuites>
element in JUnit XML logfile - #5946:
Callback
throws aTypeError
when checking acallable
has variadic parameters
PHPUnit 10.5.34
PHPUnit 11.3.4
Fixed
- #4584:
assertJsonStringEqualsJsonString()
considers objects with sequential numeric keys equal to be arrays - #4625: Generator yielding keys that are neither integer or string leads to hard-to-understand error message when used as data provider
- #4674: JSON assertions should treat objects as unordered
- #5891:
Callback
constraint does not handle variadic arguments correctly when used for mock object expectations - #5929: TestDox output containing
$
at the beginning gets truncated when used with a data provider - #5943: Tests configured to be in group(s) using the XML configuration file are also added to the
default
group
PHPUnit 10.5.33
Fixed
- #4584:
assertJsonStringEqualsJsonString()
considers objects with sequential numeric keys equal to be arrays - #4625: Generator yielding keys that are neither integer or string leads to hard-to-understand error message when used as data provider
- #4674: JSON assertions should treat objects as unordered
- #5891:
Callback
constraint does not handle variadic arguments correctly when used for mock object expectations - #5929: TestDox output containing
$
at the beginning gets truncated when used with a data provider
PHPUnit 11.3.3
Added
- #5937:
failOnPhpunitDeprecation
attribute on the<phpunit>
element of the XML configuration file and--fail-on-phpunit-deprecation
CLI option for controlling whether PHPUnit deprecations should be considered when determining the test runner's shell exit code (default: do not consider) displayDetailsOnPhpunitDeprecations
attribute on the<phpunit>
element of the XML configuration file and--display-phpunit-deprecations
CLI 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-deprecation
CLI 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-deprecations
CLI option or thedisplayDetailsOnPhpunitDeprecations
attribute on the<phpunit>
element of the XML configuration file.
PHPUnit 10.5.32
Added
- #5937:
failOnPhpunitDeprecation
attribute on the<phpunit>
element of the XML configuration file and--fail-on-phpunit-deprecation
CLI option for controlling whether PHPUnit deprecations should be considered when determining the test runner's shell exit code (default: do not consider) displayDetailsOnPhpunitDeprecations
attribute on the<phpunit>
element of the XML configuration file and--display-phpunit-deprecations
CLI 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-deprecation
CLI 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-deprecations
CLI option or thedisplayDetailsOnPhpunitDeprecations
attribute on the<phpunit>
element of the XML configuration file.