Skip to content

Releases: sebastianbergmann/phpunit

PHPUnit 11.3.5

13 Sep 05:39
11.3.5
4dc07a5
Compare
Choose a tag to compare

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 a TypeError when checking a callable has variadic parameters

How to install or update PHPUnit

PHPUnit 10.5.34

13 Sep 05:23
10.5.34
3c69d31
Compare
Choose a tag to compare

Fixed

  • #5931: Reverted addition of name property on <testsuites> element in JUnit XML logfile
  • #5946: Callback throws a TypeError when checking a callable has variadic parameters

How to install or update PHPUnit

PHPUnit 11.3.4

09 Sep 06:09
11.3.4
d2ef57d
Compare
Choose a tag to compare

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

How to install or update PHPUnit

PHPUnit 10.5.33

09 Sep 06:07
10.5.33
4def7a9
Compare
Choose a tag to compare

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

How to install or update PHPUnit

PHPUnit 11.3.3

04 Sep 13:35
11.3.3
8ed0876
Compare
Choose a tag to compare

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 the failOnPhpunitDeprecation="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 the displayDetailsOnPhpunitDeprecations attribute on the <phpunit> element of the XML configuration file.

How to install or update PHPUnit

PHPUnit 10.5.32

04 Sep 13:34
10.5.32
f069f46
Compare
Choose a tag to compare

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 the failOnPhpunitDeprecation="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 the displayDetailsOnPhpunitDeprecations attribute on the <phpunit> element of the XML configuration file.

How to install or update PHPUnit

PHPUnit 11.3.2

03 Sep 12:01
11.3.2
8a4de85
Compare
Choose a tag to compare

Changed

  • #5931: name property on <testsuites> element in JUnit XML logfile
  • Removed .phpstorm.meta.php file as methods such as TestCase::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

How to install or update PHPUnit

PHPUnit 10.5.31

03 Sep 11:59
10.5.31
43e7c3e
Compare
Choose a tag to compare

Changed

  • #5931: name property on <testsuites> element in JUnit XML logfile
  • Removed .phpstorm.meta.php file as methods such as TestCase::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

How to install or update PHPUnit

PHPUnit 11.3.1

13 Aug 06:15
11.3.1
fe17987
Compare
Choose a tag to compare

Changed

  • Improved how objects are handled for some assertion failure messages

How to install or update PHPUnit

PHPUnit 10.5.30

13 Aug 06:10
10.5.30
b15524f
Compare
Choose a tag to compare

Changed

  • Improved error message when stubbed method is called more often than return values were configured for it

How to install or update PHPUnit