lint/phpunit/require-data-provider-naming
Not in any set. Unsafe fix: it can change behaviour. Runs when phpunit is installed.
What it does
Data provider names must match the name of the test.
Configuration
[lint.rules]
"phpunit/require-data-provider-naming" = "error"
To skip it in some files, add an override or a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
prefix |
string |
Any | "provide" |
prefix |
suffix |
string |
Any | "Cases" |
suffix |
Replaces
php_unit_data_provider_name(php-cs-fixer, risky)