Skip to content

#501 - DebugTransformerTest: capture the dump instead of writing it to the output - #502

Merged
njoubert-cleverage merged 1 commit into
mainfrom
501
Nov 6, 2026
Merged

njoubert-cleverage merged 1 commit into
mainfrom
501

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #501: DebugTransformerTest::testTransform captures the dump of the DebugTransformer with a VarDumper handler (restored afterwards) and asserts the dumped value, instead of letting it be written to the output of PHPUnit and dumping the value once more. The output of the test suite no longer contains 123.

Checked locally: highest dependencies (PHP 8.5.12): all tests OK; PHPStan, PHP-CS-Fixer and Rector OK. Test only: no changelog.

Requirements

  • Documentation updates
    • Reference
    • Cookbooks
    • Changelog
  • Unit tests

Breaking changes

None.

🤖 Generated with Claude Code

…o the output

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@njoubert-cleverage
njoubert-cleverage requested a review from a team as a code owner November 6, 2026 15:48
@njoubert-cleverage
njoubert-cleverage merged commit 9239755 into main Nov 6, 2026
17 checks passed
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.

DebugTransformerTest writes 123 to the output of PHPUnit

1 participant