Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As the PHPUnit Polyfills, as of now, will officially support PHPUnit 11.x, with the exception of the TestListeners, the GH Actions workflow should be updated to reflect this. This commit: * Move the PHP 8.2/8.3 "high" (auto) PHPUnit version builds out of the matrix and run these without code coverage (see below). * Add builds for PHP 8.2 and 8.3 against low PHPUnit 11 versions for the Composer based tests. * Add builds for PHP 8.2 and 8.3 against high/low PHPUnit 11 for the PHAR based tests. * Add an extra experimental build in both test workflows against PHP "nightly" to ensure both PHPUnit 9.x, 10.x, as well as PHPUnit 11.x are tested with PHP 8.4. * Updates the experimental build against "future" PHPUnit to always run against the latest official PHP release. **Regarding PHPUnit 11 and running code coverage**: Since PHPUnit 10, PHPUnit does not distinguish between PHPUnit and PHP deprecation notices anymore. This means that when `failOnDeprecation` is enabled (as is done for this library to be ready early for new PHP versions), a test run will also fail if there are PHPUnit native deprecation notices. Now PHPUnit 11.2 deprecated the use of `#[CoversClass]` for traits and introduced a `#[CoversTrait]` attribute to replace this. However, it is currently impossible to action this deprecation notice in a PHPUnit cross-version compatible manner. This has been reported upstream and until that issue has been addressed in PHPUnit itself, the net-effect of this issue is that we can run the tests with code coverage on PHPUnit < 11.2, but not on PHPUnit 11.2 or higher. Ref: * sebastianbergmann/phpunit#5937
- Loading branch information