Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format class names as well as method names in testdox output #3741

Closed
johnbillion opened this issue Jun 27, 2019 · 0 comments
Closed

Format class names as well as method names in testdox output #3741

johnbillion opened this issue Jun 27, 2019 · 0 comments
Assignees
Labels
type/enhancement A new idea that should be implemented
Milestone

Comments

@johnbillion
Copy link
Sponsor Contributor

Q A
PHPUnit version 8.2.3
PHP version 7.3.5
Installation Method Composer

When using the --testdox flag, PHPUnit formats test method names so they're human readable. For example, function testBalanceIsInitiallyZero becomes Balance is initially zero.

The same is not true for class names, meaning that class BankAccount does not get converted to Bank Account when it's used as a heading in the output.

It would be great if support for this was added, so test class names get formatted nicely without having to use a class-level @testdox annotation on each test class.

@sebastianbergmann sebastianbergmann added the type/enhancement A new idea that should be implemented label Jun 29, 2019
@sebastianbergmann sebastianbergmann self-assigned this Jun 29, 2019
@sebastianbergmann sebastianbergmann added this to the PHPUnit 8.3 milestone Jun 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement A new idea that should be implemented
Projects
None yet
Development

No branches or pull requests

2 participants