Skip to content

Conversation

@miladev95
Copy link
Contributor

Adds a single, small unit test file tests/unit/Util/ThrowableToStringMapperTest.php that covers deterministic branches in PHPUnit\Util\ThrowableToStringMapper:
ErrorException -> message only (exact)
Generic Throwable -> ClassName: message\n (exact)
ExpectationFailedException with ComparisonFailure -> message + diff + newline (substring checks)
PhptAssertionFailedError -> message + diff + newline (substring checks)

@codecov
Copy link

codecov bot commented Dec 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.86%. Comparing base (cb8b1ac) to head (3367e02).
⚠️ Report is 17 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #6448   +/-   ##
=========================================
  Coverage     95.86%   95.86%           
  Complexity     7295     7295           
=========================================
  Files           792      792           
  Lines         22442    22442           
=========================================
  Hits          21514    21514           
  Misses          928      928           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sebastianbergmann
Copy link
Owner

Cherry-picked into 10.5 and merged to 11.5, 12.5, and main from there.

@sebastianbergmann sebastianbergmann added the type/tests Tests! Yes, PHPUnit, too, needs tests. label Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/tests Tests! Yes, PHPUnit, too, needs tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants