Skip to content

Releases: sebastianbergmann/phpunit

PHPUnit 11.4.1

08 Oct 15:39
11.4.1
7875627
Compare
Choose a tag to compare

Changed

  • Updated regular expressions used by StringMatchesFormatDescription constraint to be consistent with PHP's run-tests.php

Fixed

  • #5977: TestDox result collector does not correctly handle baseline-ignored E_DEPRECATED issues

How to install or update PHPUnit

PHPUnit 10.5.36

08 Oct 15:37
10.5.36
aa0a8ce
Compare
Choose a tag to compare

Changed

  • #5957: Skip data provider build when requirements are not satisfied
  • #5969: Check for requirements before creating a separate process
  • Updated regular expressions used by StringMatchesFormatDescription constraint to be consistent with PHP's run-tests.php

Fixed

  • #5965: PHPUnit\Framework\Exception does not handle string error codes (PDOException with error code 'HY000', for example)

How to install or update PHPUnit

PHPUnit 11.4.0

05 Oct 08:42
11.4.0
89fe0c5
Compare
Choose a tag to compare

Changed

  • #5915: Bootstrap extensions before building test suite
  • #5917: Seal event facade before loading the test suite
  • #5923: Filter configured deprecation triggers when displaying deprecation details
  • #5927: #[RequiresPhpunitExtension] attribute
  • #5928: Filter tests based on the PHP extensions they require
  • #5964: Better error message when data provider is invalid
  • The XML configuration file generator now references vendor/phpunit/phpunit/phpunit.xsd (instead of https://schema.phpunit.de/X.Y/phpunit.xsd) when PHPUnit was installed using Composer and phpunit --generate-configuration was invoked in the directory where vendor is located
  • The --migrate-configuration command no longer replaces vendor/phpunit/phpunit/phpunit.xsd with https://schema.phpunit.de/X.Y/phpunit.xsd
  • The output of --list-groups now shows how many tests a group contains
  • The output of --list-suites now shows how many tests a test suite contains

Deprecated

  • #5951: includeUncoveredFiles configuration option
  • #5958: Support for #[CoversTrait] and #[UsesTrait] attributes
  • #5960: Support for targeting trait methods with the #[CoversMethod] and #[UsesMethod] attributes (and respective annotations)

How to install or update PHPUnit

PHPUnit 11.3.6

19 Sep 11:09
11.3.6
d62c45a
Compare
Choose a tag to compare

Changed

  • #5956: Deprecation of the E_STRICT constant in PHP 8.4

Fixed

  • #5950: TestDox text should not be trim()med when it contains $ character
  • The attribute parser will no longer try to instantiate attribute classes that do not exist

How to install or update PHPUnit

PHPUnit 10.5.35

19 Sep 11:08
10.5.35
7ac8b4e
Compare
Choose a tag to compare

Changed

  • #5956: Deprecation of the E_STRICT constant in PHP 8.4

Fixed

  • #5950: TestDox text should not be trim()med when it contains $ character
  • The attribute parser will no longer try to instantiate attribute classes that do not exist

How to install or update PHPUnit

PHPUnit 9.6.21

19 Sep 11:08
9.6.21
de6abf3
Compare
Choose a tag to compare

Changed

  • #5956: Deprecation of the E_STRICT constant in PHP 8.4
  • 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

How to install or update PHPUnit

PHPUnit 8.5.40

19 Sep 11:07
8.5.40
48ed828
Compare
Choose a tag to compare

Changed

  • #5956: Deprecation of the E_STRICT constant in PHP 8.4
  • 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

How to install or update 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