lint/phpunit/require-test-annotation-style
In the code-quality set. Unsafe fix: it can change behaviour. Runs when phpunit is installed.
What it does
Mark tests consistently: a test prefix or a @test annotation.
Configuration
[lint.rules]
"phpunit/require-test-annotation-style" = "error"
To skip it in some files, add an override or a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
style |
enum |
prefix, annotation |
"prefix" |
style |
Replaces
php_unit_test_annotation(php-cs-fixer, risky)