Skip to content

Test Runner does not warn about conflicting options #5076

Closed
@joachim-n

Description

@joachim-n
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.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions