Repository navigation
Conversation
…onfig Kill 5 escaped mutants by adding targeted tests: - Ternary swap, AND/OR logic, and concat mutations in DeprecationRouteDescriber - Boundary condition (>= vs >) in DeprecationHeaderListener sunset check - Exact cron time window end in BrownoutChecker Move MSI threshold (95%) to infection.json5, remove redundant CLI flags. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR tightens mutation testing by adding targeted boundary/logic tests around API deprecation behavior (headers, sunset handling, brownout timing) and simplifies Infection configuration by relying on infection.json5 thresholds instead of CLI flags.
Changes:
- Add boundary tests for sunset-at-exact-time behavior in
DeprecationHeaderListener, exact-cron-time behavior inBrownoutChecker, and route-method scoping/description formatting inDeprecationRouteDescriber. - Remove redundant
--min-msi/--min-covered-msiflags from Makefile and CI Infection invocations (thresholds enforced viainfection.json5).
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tests/EventListener/DeprecationHeaderListenerTest.php | Adds a sunset boundary-time test using an injected clock to kill mutation at the >= cutoff. |
| tests/Brownout/BrownoutCheckerTest.php | Adds a test for brownout window end when the clock is exactly on the cron tick. |
| tests/Bridge/NelmioApiDoc/DeprecationRouteDescriberTest.php | Adds tests ensuring only route methods are affected and description formatting is exact; tightens an existing assertion. |
| Makefile | Runs Infection without MSI CLI thresholds (delegates to infection.json5). |
| .github/workflows/ci.yml | Runs Infection without MSI CLI thresholds (delegates to infection.json5), keeping GitHub logger. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
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
DeprecationRouteDescriber,DeprecationHeaderListener, andBrownoutCheckerinfection.json5, removing redundant CLI flags from CI and MakefileTest plan
make test— all PHPUnit tests passmake infection— MSI ≥ 95% (currently 97.48%)make qa— full quality gate passes🤖 Generated with Claude Code