Skip to content

Releases: sebastianbergmann/phpunit

PHPUnit 12.1.5

11 May 06:48
12.1.5
f93ef21
Compare
Choose a tag to compare

Fixed

  • #6192: Reverted change made in PHPUnit 11.5.19 due to regression
  • #6199: assertEmpty() and assertNotEmpty() use overly restrictive phpstan-assert empty directives

How to install or update PHPUnit

PHPUnit 11.5.20

11 May 06:43
11.5.20
e6bdea6
Compare
Choose a tag to compare

Fixed

  • #6199: assertEmpty() and assertNotEmpty() use overly restrictive phpstan-assert empty directives
  • #6192: Reverted change made in PHPUnit 11.5.19 due to regression

How to install or update PHPUnit

PHPUnit 12.1.4

02 May 07:02
12.1.4
5ee57ad
Compare
Choose a tag to compare

Added

  • displayDetailsOnAllIssues attribute on the <phpunit> element of the XML configuration file and --display-all-issues CLI option for controlling whether PHPUnit should display details on all issues that are triggered (default: false)
  • failOnAllIssues attribute on the <phpunit> element of the XML configuration file and --fail-on-all-issues CLI option for controlling whether PHPUnit should fail on all issues that are triggered (default: false)

Changed

  • #5956: Improved handling of deprecated E_STRICT constant

Fixed

  • #6192: Positive %a and %A matches are not ignored from diff when EXPECTF fails

How to install or update PHPUnit

PHPUnit 11.5.19

02 May 06:58
11.5.19
0da1ebc
Compare
Choose a tag to compare

Added

  • displayDetailsOnAllIssues attribute on the <phpunit> element of the XML configuration file and --display-all-issues CLI option for controlling whether PHPUnit should display details on all issues that are triggered (default: false)
  • failOnAllIssues attribute on the <phpunit> element of the XML configuration file and --fail-on-all-issues CLI option for controlling whether PHPUnit should fail on all issues that are triggered (default: false)

Changed

  • #5956: Improved handling of deprecated E_STRICT constant

Fixed

  • #6192: Positive %a and %A matches are not ignored from diff when EXPECTF fails

How to install or update PHPUnit

PHPUnit 10.5.46

02 May 06:47
10.5.46
8080be3
Compare
Choose a tag to compare

Added

  • displayDetailsOnAllIssues attribute on the <phpunit> element of the XML configuration file and --display-all-issues CLI option for controlling whether PHPUnit should display details on all issues that are triggered (default: false)
  • failOnAllIssues attribute on the <phpunit> element of the XML configuration file and --fail-on-all-issues CLI option for controlling whether PHPUnit should fail on all issues that are triggered (default: false)

Changed

  • #5956: Improved handling of deprecated E_STRICT constant
  • Improved message when test is considered risky for printing unexpected output

How to install or update PHPUnit

PHPUnit 9.6.23

02 May 06:42
9.6.23
43d2cb1
Compare
Choose a tag to compare

Changed

  • #5956: Improved handling of deprecated E_STRICT constant
  • Improved message when test is considered risky for printing unexpected output

How to install or update PHPUnit

PHPUnit 8.5.42

02 May 06:38
8.5.42
3a68a70
Compare
Choose a tag to compare

Changed

  • #5956: Improved handling of deprecated E_STRICT constant
  • Improved message when test is considered risky for printing unexpected output

How to install or update PHPUnit

PHPUnit 12.1.3

22 Apr 06:12
12.1.3
72ca50e
Compare
Choose a tag to compare

Changed

  • When gathering the telemetry information that each event has, the real size of memory allocated from the operating system is no longer used as this is grown by PHP's memory manager in chunks that are so large that small(er) increases in peak memory usage cannot be seen
  • The peak memory usage returned by memory_get_peak_usage() is now reset immediately before the Test\Prepared event is emitted using memory_reset_peak_usage() so that (memory usage at Test\Finished - memory usage at Test\Prepared) is a better approximation of the memory usage of the test
  • The string representation of Telemetry\Info now uses peak memory usage instead of memory usage (this affects --log-events-verbose-text)

Fixed

  • #6173: Output from error_log() is not displayed when test fails
  • A "Before Test Method Errored" event is no longer emitted when a test is skipped in a "before test" method

How to install or update PHPUnit

PHPUnit 11.5.18

22 Apr 06:12
11.5.18
fc3e887
Compare
Choose a tag to compare

Changed

  • When gathering the telemetry information that each event has, the real size of memory allocated from the operating system is no longer used as this is grown by PHP's memory manager in chunks that are so large that small(er) increases in peak memory usage cannot be seen
  • The peak memory usage returned by memory_get_peak_usage() is now reset immediately before the Test\Prepared event is emitted using memory_reset_peak_usage() so that (memory usage at Test\Finished - memory usage at Test\Prepared) is a better approximation of the memory usage of the test
  • The string representation of Telemetry\Info now uses peak memory usage instead of memory usage (this affects --log-events-verbose-text)

Fixed

  • A "Before Test Method Errored" event is no longer emitted when a test is skipped in a "before test" method

How to install or update PHPUnit

PHPUnit 12.1.2

08 Apr 08:06
12.1.2
6f2775c
Compare
Choose a tag to compare

Fixed

  • #6104: Reverted change introduced in PHPUnit 12.1.1

How to install or update PHPUnit