Skip to content

Clarify interaction of --no-output with other CLI options that control output #6345

@llaville

Description

@llaville
Q A
PHPUnit version 11.5.34
PHP version 8.3.6
Installation Method Composer v2

Summary

Need to clarify behaviour in https://docs.phpunit.de/en/11.5/textui.html#versions-and-configuration context

Current behavior

When other flags are specified before the --no-output, results are printed, while if there are only --no-output flag, nothing is printed on standard output

For example :

Image

How to reproduce

  1. Any source code with unit tests seems to be enough.
  2. Try to print results in testdox format like : vendor/bin/phpunit --no-extensions --testdox --no-output
  3. And compare to standard vendor/bin/phpunit --no-extensions --no-output (nothing printed)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions