Skip to content

PHPUnit 12.5.46

Choose a tag to compare

@github-actions github-actions released this 04 Dec 04:01
Immutable release. Only release title and notes can be modified.
12.5.46
26b8cd7

Fixed

  • assertFinite() does not tell PHPStan that the value is a finite float or an int, so the type of the value is not narrowed when test code is analysed with PHPStan (this requires PHPStan 2.3.6 or newer)
  • The process that runs a PHPT test with an --ENV-- section is started with an environment that is built from $_SERVER instead of the environment of the test runner's process: environment variables that were set using putenv(), for instance those configured using <env> in the XML configuration file, are missing, and elements of $_SERVER that are not environment variables, for instance those configured using <server> in the XML configuration file, are exported as environment variables

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.