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
Milestone

Comments

@johnbillion
Copy link

@johnbillion johnbillion commented Jun 27, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants