Commit e81f031
committed
test: add UsesClass attributes to fix PHPUnit 12.5.x coverage warnings
PHPUnit 12.5.x is stricter about coverage attribution:
- Tests that touch classes not listed in CoversClass/UsesClass are marked
risky or produce 'not a valid target' warnings with --coverage.
ToolExceptionTest: #[UsesClass(DevkitException::class)]
ToolException extends DevkitException — parent is touched implicitly.
ConfigurationExceptionTest: #[UsesClass(DevkitException::class)]
Same reason.
QualityReportTest: #[UsesClass(ToolResult::class)]
QualityReport helper creates ToolResult instances directly.1 parent 96f1b03 commit e81f031
3 files changed
Lines changed: 6 additions & 0 deletions
File tree
- tests/Unit
- Exception
- ValueObject
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
0 commit comments