Closed
Description
Q | A |
---|---|
PHPUnit version | 9.5.20 |
PHP version | 8.9 |
Installation Method | Composer |
Summary
I ran vendor/bin/phpunit path/to/tests/ --filter=methodName --list-tests
.
Current behavior
I got the list of ALL tests in path/to/tests/
.
How to reproduce
Expected behavior
Show only tests matching methodName:
- multiple methods in different classes with the same name
- methods that match the given name
- data provider IDs if any of those methods have a data provider.
Alternatively, if this is by design warn that --list-tests and --filter options are not compatible.