-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Emit warning when the name of a data provider method begins with test #6300
Copy link
Copy link
Closed
Labels
feature/data-providerData ProvidersData Providersfeature/test-runnerCLI test runnerCLI test runnertype/enhancementA new idea that should be implementedA new idea that should be implementedversion/10Something affects PHPUnit 10Something affects PHPUnit 10version/11Something affects PHPUnit 11Something affects PHPUnit 11version/12Something affects PHPUnit 12Something affects PHPUnit 12
Metadata
Metadata
Assignees
Labels
feature/data-providerData ProvidersData Providersfeature/test-runnerCLI test runnerCLI test runnertype/enhancementA new idea that should be implementedA new idea that should be implementedversion/10Something affects PHPUnit 10Something affects PHPUnit 10version/11Something affects PHPUnit 11Something affects PHPUnit 11version/12Something affects PHPUnit 12Something affects PHPUnit 12
Summary
A data provider method causes a warning about Risky test (This test did not perform any assertions)
How to reproduce
This is my two methods, test and data:
And the output is:
Expected behavior
Don't warn about data provider static method as Risky? Or may be I'm doing something wrong ?