You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This rule forces you to specify a @covers or @coversDefaultClass annotation in unit tests (default: `PHPUnit\Framework\TestCase`).
44
+
This rule checks that classes that are covered by `@covers` annotation or `#[CoversClass]` attribute exist.
45
+
46
+
### `CoversClassPresentRule`
47
+
48
+
This rule forces you to specify either a `@covers` annotation or `#[CoversClass]`, `#[CoversFunction]` or `#[CoversNothing]` attributes in unit tests (default: `PHPUnit\Framework\TestCase`).
44
49
45
50
**Why:**
46
51
1. It prevents code coverage sums to show higher values than expected.
@@ -60,9 +65,8 @@ final class MyInvalidClassTest extends \PHPUnit\Framework\TestCase {}
0 commit comments