Fixed
assertFinite()does not tell PHPStan that the value is a finitefloator anint, 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$_SERVERinstead of the environment of the test runner's process: environment variables that were set usingputenv(), for instance those configured using<env>in the XML configuration file, are missing, and elements of$_SERVERthat 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.