lint/phpunit/require-data-provider-order
In the coding-style set. Safe fix. Runs when phpunit is installed.
What it does
Data provider method must be placed after/before the last/first test where used.
Configuration
[lint.rules]
"phpunit/require-data-provider-order" = "error"
To skip it in some files, add an override or a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
placement |
enum |
after, before |
"after" |
placement |
Replaces
php_unit_data_provider_method_order(php-cs-fixer)