Skip to content

Releases: sebastianbergmann/phpunit

PHPUnit 13.1.1

08 Apr 03:08
Immutable release. Only release title and notes can be modified.
13.1.1
bf114c9

Choose a tag to compare

Changed

  • #3676: Include class/interface name in mock object expectation failure messages
  • #4793: Exit with non-zero exit code when exit was called from some test

Fixed

  • #5881: colors="true" in XML configuration file does not unconditionally enable colored output
  • #6019: --migrate-configuration does not update schema location when XML content already validates against current schema
  • #6372: Assertion failure inside willReturnCallback() is silently swallowed when code under test catches exceptions
  • #6464: Process isolation template unconditionally calls set_include_path()
  • #6571: Static analysis errors for TestDoubleBuilder method chaining

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

Keep up to date with PHPUnit:

  • You can follow @phpunit@phpc.social 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.5.17

08 Apr 03:07
Immutable release. Only release title and notes can be modified.
12.5.17
85b62ad

Choose a tag to compare

Changed

  • #4793: Exit with non-zero exit code when exit was called from some test

Fixed

  • #5881: colors="true" in XML configuration file does not unconditionally enable colored output
  • #6019: --migrate-configuration does not update schema location when XML content already validates against current schema
  • #6372: Assertion failure inside willReturnCallback() is silently swallowed when code under test catches exceptions
  • #6464: Process isolation template unconditionally calls set_include_path()
  • #6571: Static analysis errors for TestDoubleBuilder method chaining

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

Keep up to date with PHPUnit:

  • You can follow @phpunit@phpc.social 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 13.1.0

03 Apr 05:31
Immutable release. Only release title and notes can be modified.
13.1.0
97f2748

Choose a tag to compare

Added

  • #6501: Include unexpected output in Open Test Reporting (OTR) XML logfile
  • #6517: includeInCodeCoverage attribute for <directory> and <file> children of <source>
  • #6523: Include #[Group] information in Open Test Reporting (OTR) XML logfile
  • #6524: Report issues in Open Test Reporting (OTR) XML logfile
  • #6526: Introduce #[DataProviderClosure] for static closures
  • #6530: Support for custom issue trigger resolvers that can be configured using <issueTriggerResolvers> in the XML configuration file
  • #6547: Support for %r...%r in EXPECTF section
  • Support for configuring HTML code coverage report options (colors, thresholds, custom CSS) in XML configuration file without requiring an outputDirectory attribute, allowing the output directory to be specified later with the --coverage-html CLI option
  • Support for configuring dark mode colors, progress bar colors, and breadcrumb colors for HTML code coverage reports in the XML configuration file

Changed

  • #6557: Improve failure description for StringMatchesFormatDescription constraint which is used by assertFileMatchesFormat(), assertFileMatchesFormatFile(), assertStringMatchesFormat(), assertStringMatchesFormatFile(), and EXPECTF sections of PHPT test files
  • The HTML code coverage report now uses a more colorblind-friendly blue/amber/orange palette by default
  • Extracted PHPUnit\Runner\Extension\Facade from a concrete class to an interface and introduced an internal ExtensionFacade implementation, so that extensions only depend on the Facade interface while PHPUnit internally uses the ExtensionFacade class that also provides query methods

Deprecated

  • #6515: Deprecate the --log-events-verbose-text <file> CLI option
  • #6537: Soft-deprecate id() and after() for mock object expectations

Fixed

  • #6025: FILE_EXTERNAL breaks __DIR__
  • #6351: No warning when the same test runner extension is configured more than once
  • #6433: Logic in TestSuiteLoader is brittle and causes "Class FooTest not found" even for valid tests in valid filenames
  • #6463: Process Isolation fails on non-serializable globals and quietly ignore closures

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

Keep up to date with PHPUnit:

  • You can follow @phpunit@phpc.social 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.5.16

03 Apr 05:27
Immutable release. Only release title and notes can be modified.
12.5.16
b2429f5

Choose a tag to compare

Added

  • #6547: Support for %r...%r in EXPECTF section

Fixed

  • #6025: FILE_EXTERNAL breaks __DIR__
  • #6351: No warning when the same test runner extension is configured more than once
  • #6433: Logic in TestSuiteLoader is brittle and causes "Class FooTest not found" even for valid tests in valid filenames
  • #6463: Process Isolation fails on non-serializable globals and quietly ignore closures

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

Keep up to date with PHPUnit:

  • You can follow @phpunit@phpc.social 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 13.0.6

31 Mar 06:45
Immutable release. Only release title and notes can be modified.
13.0.6
9e426f7

Choose a tag to compare

Changed

  • #4440: Improve error when configured code coverage file list is empty
  • #6549: Allow to stub both hooks of non-virtual properties

Fixed

  • #6529: Git "detached HEAD state" in Open Test Reporting (OTR) XML logger not handled properly
  • #6545: Stubbing a class with set property hook leaves property uninitialized by default
  • The RegularExpression and StringMatchesFormatDescription did not handle preg_match() errors such as Compilation failed: regular expression is too large

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

Keep up to date with PHPUnit:

  • You can follow @phpunit@phpc.social 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.5.15

31 Mar 06:43
Immutable release. Only release title and notes can be modified.
12.5.15
aeb6899

Choose a tag to compare

Changed

  • #4440: Improve error when configured code coverage file list is empty
  • #6549: Allow to stub both hooks of non-virtual properties

Fixed

  • #6529: Git "detached HEAD state" in Open Test Reporting (OTR) XML logger not handled properly
  • #6545: Stubbing a class with set property hook leaves property uninitialized by default
  • The RegularExpression and StringMatchesFormatDescription did not handle preg_match() errors such as Compilation failed: regular expression is too large

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

Keep up to date with PHPUnit:

  • You can follow @phpunit@phpc.social 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 13.0.5

18 Feb 12:41
Immutable release. Only release title and notes can be modified.
13.0.5
d57826e

Choose a tag to compare

Fixed

  • #6521: Performance regression in PHPUnit 11.5.54, PHPUnit 12.5.13, and PHPUnit 13.0.4

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

Keep up to date with PHPUnit:

  • You can follow @phpunit@phpc.social 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 13.0.4

18 Feb 09:01
Immutable release. Only release title and notes can be modified.
13.0.4
915a2e7

Choose a tag to compare

Fixed

  • #6489: Classification of self/direct/indirect deprecation triggers is not aligned with Symfony's bridge for PHPUnit

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

Keep up to date with PHPUnit:

  • You can follow @phpunit@phpc.social 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.5.14

18 Feb 12:40
Immutable release. Only release title and notes can be modified.
12.5.14
47283cf

Choose a tag to compare

Fixed

  • #6521: Performance regression in PHPUnit 11.5.54, PHPUnit 12.5.13, and PHPUnit 13.0.4

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

Keep up to date with PHPUnit:

  • You can follow @phpunit@phpc.social 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.5.13

18 Feb 09:00
Immutable release. Only release title and notes can be modified.
12.5.13
89d9436

Choose a tag to compare

Fixed

  • #6489: Classification of self/direct/indirect deprecation triggers is not aligned with Symfony's bridge for PHPUnit

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

Keep up to date with PHPUnit:

  • You can follow @phpunit@phpc.social 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.