-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Make diff context lines configurable in PHPUnit #6567
Copy link
Copy link
Open
Labels
type/enhancementA new idea that should be implementedA new idea that should be implemented
Description
Add a --diff-context CLI option and a diffContext XML configuration attribute so users can control how many context lines appear in assertion failure diffs.
The challenge here is that these instantiation sites currently have no access to the resolved configuration. One approach is to introduce a lightweight static accessor or thread the value through the existing TestCase configuration, similar to how other test-level settings are handled.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type/enhancementA new idea that should be implementedA new idea that should be implemented