Skip to content

Releases: sebastianbergmann/phpunit

PHPUnit 11.5.29

09 Aug 07:13
11.5.29
804ac91

Choose a tag to compare

Added

  • #6297: --check-php-configuration CLI option for checking whether PHP is configured for testing

Changed

  • #[IgnorePhpunitDeprecations] is now considered for test runner deprecations (where applicable)

Fixed

  • #6160: Baseline file in a subdirectory contains absolute paths
  • Errors due to invalid data provided using #[TestWith] or #[TestWithJson] attributes are now properly reported
  • The DataProviderMethodFinished event is now also emitted when the provided data set has an invalid key

Learn how to install or update PHPUnit 11.5 in the documentation.

Keep up to date with PHPUnit:

  • You can follow @[email protected] to stay up to date with PHPUnit's development.
  • You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.

PHPUnit 10.5.49

09 Aug 07:08
10.5.49
e2571b0

Choose a tag to compare

Added

  • #6297: --check-php-configuration CLI option for checking whether PHP is configured for testing

Fixed

  • Errors due to invalid data provided using #[TestWith] or #[TestWithJson] attributes are now properly reported

Learn how to install or update PHPUnit 10.5 in the documentation.

Keep up to date with PHPUnit:

  • You can follow @[email protected] to stay up to date with PHPUnit's development.
  • You can subscribe to the PHPUnit Updates newsletter to receive updates about and tips for PHPUnit.

PHPUnit 12.3.0

01 Aug 05:15
12.3.0
264da86

Choose a tag to compare

Added

  • #3795: Bootstrap scripts specific to test suites
  • #6268: #[IgnorePHPUnitWarnings] attribute for ignoring PHPUnit warnings
  • #[TestDoxFormatter] and #[TestDoxFormatterExternal] attributes for configuring a custom TestDox formatter for tests that use data from data providers
  • TestRunner\ChildProcessErrored event
  • Configuration::includeTestSuites() and Configuration::excludeTestSuites()

Changed

  • #6237: Do not run tests when code coverage analysis is requested but code coverage data cannot be collected
  • #6272: Use @<data-set-name> format (compatible with --filter CLI option) in defect messages
  • #6273: Warn when #[DataProvider*] attributes are mixed with #[TestWith*] attributes

Deprecated

  • #6229: Configuration::includeTestSuite(), use Configuration::includeTestSuites() instead
  • #6229: Configuration::excludeTestSuite(), use Configuration::excludeTestSuites() instead
  • #6246: Using #[CoversNothing] on a test method

How to install or update PHPUnit

PHPUnit 12.2.9

31 Jul 07:14
12.2.9
442c06d

Choose a tag to compare

Fixed

  • #6097: The file attribute of <testClass> node of XML test list can be wrong

How to install or update PHPUnit

PHPUnit 11.5.28

31 Jul 07:14
11.5.28
93f30aa

Choose a tag to compare

Fixed

  • #6097: The file attribute of <testClass> node of XML test list can be wrong

How to install or update PHPUnit

PHPUnit 12.2.8

30 Jul 06:01
12.2.8
49dc7c0

Choose a tag to compare

Fixed

  • #6274: Infinite recursion when code coverage report in OpenClover XML format is configured in XML configuration file

How to install or update PHPUnit

PHPUnit 12.2.7

11 Jul 04:13
12.2.7
8b1348b

Choose a tag to compare

Fixed

  • #6254: defects,randomconfiguration is supported by implementation, but it is not allowed by the XML configuration file schema
  • #6259: Order of tests which use data from data providers is not affected by test sorting
  • #6266: Superfluous whitespace in TestDox output when test method name has a number after the test prefix

How to install or update PHPUnit

PHPUnit 11.5.27

11 Jul 04:13
11.5.27
446d438

Choose a tag to compare

Fixed

  • #6254: defects,randomconfiguration is supported by implementation, but it is not allowed by the XML configuration file schema
  • #6259: Order of tests which use data from data providers is not affected by test sorting
  • #6266: Superfluous whitespace in TestDox output when test method name has a number after the test prefix

How to install or update PHPUnit

PHPUnit 10.5.48

11 Jul 04:13
10.5.48
6e0a2bc

Choose a tag to compare

Fixed

  • #6254: defects,randomconfiguration is supported by implementation, but it is not allowed by the XML configuration file schema

How to install or update PHPUnit

PHPUnit 12.2.6

04 Jul 06:01
12.2.6
638644c

Choose a tag to compare

Fixed

  • #6104: Test with dependencies and data provider fails
  • #6163: @no-named-arguments leads to static analysis errors for variadic arguments

How to install or update PHPUnit