Skip to content

Conversation

@swissspidy
Copy link
Member

This is related to the remaining failing Behat tests when code coverage is running.

Basically what happens in the wp-cli-bundle repo is that we include the autoloader once in generate-coverage.php, and then in the generated Phar the same autoloader is included again. That causes a fatal error because the same ComposerAutoloaderInit... class is declared twice.

This PR addresses this by hardcoding the autoloader class suffix so that it can be temporarily changed in the tests when generating a temp Phar. See wp-cli/wp-cli-tests#256

@schlessera schlessera added this to the 2.13.0 milestone Jun 11, 2025
@schlessera schlessera merged commit d591e7d into main Jun 11, 2025
41 of 42 checks passed
@schlessera schlessera deleted the add/autoload-suffix branch June 11, 2025 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants