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

Case sensitivity for --filter #3181

Closed
stof opened this issue Jun 22, 2018 · 3 comments · Fixed by elecena/nano#2
Closed

Case sensitivity for --filter #3181

stof opened this issue Jun 22, 2018 · 3 comments · Fixed by elecena/nano#2

Comments

@stof
Copy link
Contributor

stof commented Jun 22, 2018

Q A
PHPUnit version 7.2.4
PHP version 7.2.6
Installation Method Composer

Currently, the matching of tests for --filter is case sensitive. It happens a lot to me that no tests are running at all, due to writing the filter all in lowercase rather than putting capital letters matching the test name.
Would it make sense to perform a case-insensitive match instead ?

@sebastianbergmann
Copy link
Owner

Maybe. You can also pass a regular expression that works in a case insensitive way.

@stale
Copy link

stale bot commented Aug 21, 2018

This issue has been automatically marked as stale because it has not had activity within the last 60 days. It will be closed after 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 21, 2018
@stof
Copy link
Contributor Author

stof commented Aug 21, 2018

passing a regular expression is more complex. I still think that being case insensitive for the simple matching would make more sense.

@stale stale bot removed the stale label Aug 21, 2018
sebastianfeldmann pushed a commit to sebastianfeldmann/phpunit that referenced this issue Sep 7, 2018
sebastianfeldmann pushed a commit to sebastianfeldmann/phpunit that referenced this issue Sep 7, 2018
sebastianfeldmann pushed a commit to sebastianfeldmann/phpunit that referenced this issue Sep 7, 2018
sebastianfeldmann pushed a commit to sebastianfeldmann/phpunit that referenced this issue Sep 7, 2018
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 a pull request may close this issue.

2 participants