Repository navigation
fix(phpunit): load project-autoload-file before the project bootstrap - #2622
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Project mode now loads the explicit Composer autoloader before the configured bootstrap, matching PHPUnit’s CLI. With real PHPUnit 11, the same fixture failed on main at
project_bootstrapbecausePHPUnit\Runner\Versionwas missing; with this change, the recipe completed successfully.What changed
project-autoload-filebefore the bootstrap in the shared project runner, including multisite; the separate core runner already loads its autoloader first.autoload-filefallback after bootstrap and preserve theproject_autoloadstage markers andPROJECT_AUTOLOAD:log.Verification
All gates passed on
4a8016c. Basemain@195b270unchanged.HOMEBOY_LINT_BASE=195b270641500cdc32a168154f305d977d973512 homeboy --placement local review lint wp-codebox --path . --…: passed, 81225 ms; retained gate metadata.npm run build: passed, 490 ms; retained gate metadata.npx tsx --test tests/phpunit-discovery-only.test.ts tests/phpunit-project-autoload.test.ts: passed, 2235 ms; retained gate metadata.Cook run
agent-task-e7750f8a-2ae8-4b56-9b53-fcac61ef8cf1agent-task-e7750f8a-2ae8-4b56-9b53-fcac61ef8cf1-attempt-1-46c3a2a17eaf667430ae937e9d5d3f19978754c93dbf10d47eaf667430ae937e9d5d3f19978754c93dbf10d47eaf667430ae937e9d5d3f19978754c93dbf10d4Evidence
AI disclosure
Tool: Homeboy Cook. Agent: Homeboy (roadie). Model: roadie · route cook-heavy · served gpt-6.2-sol. Cook time: 43m19s.
AI traced the runner variants, implemented the ordering fix, and verified the regression with Composer-installed PHPUnit, under the direction of the Cook requester. Homeboy reports controller verification separately from this account of the AI's work. A human reviews before merge.
Refs #2621