Fixed
- When an order is configured on the command line, for instance using
--order-by random,defectsconfigured using theexecutionOrderattribute in the XML configuration file is still applied, and vice versa --fail-on-skippeddoes not make the test runner exit with a shell exit code that indicates failure when a test class is skipped, for instance because its before-first-test method callsmarkTestSkipped(), although its tests are counted as skipped--stop-on-skippeddoes not stop the test run when a test class is skipped, for instance because its before-first-test method callsmarkTestSkipped()- When PHPUnit is installed using Composer, code units in the
PHPUnit\orSebastianBergmann\namespace that do not belong to PHPUnit or one of its dependencies are preloaded on startup, which leads to a fatal error when such a code unit depends on code that is not available - Code from
nikic/php-parserand parts of the code fromphar-io/manifestare not treated like code from PHPUnit's other dependencies, for instance stack frames from it are not filtered from stack traces
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.