Skip to content

Deduplicate PHPUnit command PHP fragments#788

Merged
chubes4 merged 1 commit into
mainfrom
fix/issue-770-phpunit-template-fragments
Jun 7, 2026
Merged

Deduplicate PHPUnit command PHP fragments#788
chubes4 merged 1 commit into
mainfrom
fix/issue-770-phpunit-template-fragments

Conversation

@chubes4

@chubes4 chubes4 commented Jun 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Deduplicates shared embedded PHP fragments used by plugin and core PHPUnit command handlers.
  • Keeps plugin/core-specific bootstrapping separate while sharing config discovery, test discovery, changed-test filtering, and PHPUnit arg normalization generation.
  • Preserves existing generated PHP function names so command smoke contracts remain stable.

Fixes #770

Testing

  • npm run build
  • npm run core-phpunit-command-smoke
  • npm run phpunit-diagnostic-artifact-smoke
  • npm run project-phpunit-bootstrap-smoke
  • npm run wordpress-plugin-smoke
  • git diff --check

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (openai/gpt-5.5)
  • Used for: Drafted the focused refactor and ran the verification checks; Chris remains responsible for review and merge.

@chubes4 chubes4 merged commit 9ca67cc into main Jun 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deduplicate embedded PHP templates in PHPUnit command handlers

1 participant