Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 1.x #155 +/- ##
============================================
+ Coverage 97.48% 97.57% +0.08%
- Complexity 522 550 +28
============================================
Files 65 68 +3
Lines 1432 1483 +51
============================================
+ Hits 1396 1447 +51
Misses 36 36
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
HypeMC
force-pushed
the
phpunit-extension
branch
from
September 17, 2026 23:21
0949953 to
836afe2
Compare
HypeMC
force-pushed
the
phpunit-extension
branch
from
September 18, 2026 08:05
836afe2 to
e87a4f0
Compare
Brajk19
approved these changes
Sep 18, 2026
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 📝
This PR adds support for disabling entity change purging by default and enabling it only where needed.
Generating purge requests on every flush can noticeably slow down large test suites, even though most tests never assert on them.
A new
entity_change_purgingconfiguration option can be used to disable this behavior, for example in the test environment:A new PHPUnit extension and
#[WithEntityChangePurging]attribute can then be used to enable purging only for specific test classes or methods:When used on a test class, entity change purging is enabled for all tests in that class. When used on a test method, it is enabled only for that test. In both cases, the configured default is restored afterwards.
The new
EntityChangePurgeSwitchercan also be used directly through itsenable(),disable()andreset()methods, for example to temporarily disable purging while loading fixtures.Checklist ✅