Skip to content

DebugTransformerTest writes 123 to the output of PHPUnit #501

Closed

Description

@njoubert-cleverage

Description

DebugTransformerTest::testTransform writes 123 twice to the output of PHPUnit: the DebugTransformer dumps the value with VarDumper::dump() (STDOUT in CLI), and the test dumps it once more.

Proposed fix

Capture the dump with a VarDumper handler in the test (and assert the dumped value), restore the previous handler; no dump of its own.

Requirements

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

Breaking changes

None.

Activity

  1. added a commit that references this issue on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions