Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

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

More lint/phpunit rules · Edit this page

Last updated on

Was this page helpful?