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

lint/phpunit/require-covers

Not in any set. Safe fix. Runs when phpunit is installed.

What it does

Adds a default @coversNothing annotation to PHPUnit test classes that have no @covers* annotation.

Configuration

[lint.rules]
"phpunit/require-covers" = "error"

To skip it in some files, add an override or a @pun-ignore-file comment.

Replaces

More lint/phpunit rules · Edit this page

Last updated on

Was this page helpful?