lint/phpunit/require-method-casing
In the coding-style set. Safe fix. Runs when phpunit is installed.
What it does
Enforce camel (or snake) case for PHPUnit test methods, following configuration.
Configuration
[lint.rules]
"phpunit/require-method-casing" = "error"
To skip it in some files, add an override or a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
case |
enum |
camel-case, snake-case |
"camel-case" |
case |
Replaces
php_unit_method_casing(php-cs-fixer)