-
-
Notifications
You must be signed in to change notification settings - Fork 0
CoverageSummary
github-actions edited this page Apr 11, 2026
·
1 revision
Represents the line coverage summary extracted from a PHPUnit coverage-php report.
- Full name:
\FastForward\DevTools\PhpUnit\Coverage\CoverageSummary - This class is marked as final and can't be subclassed
- This class is a Final class
Initializes a new instance of the CoverageSummary class.
public __construct(int $executedLines, int $executableLines): mixedParameters:
| Parameter | Type | Description |
|---|---|---|
$executedLines |
int | Number of executable lines covered |
$executableLines |
int | Total executable lines in the analyzed code |
Returns the number of executable lines that were executed.
public executedLines(): intReturns the total number of executable lines.
public executableLines(): intReturns the executed line coverage as a percentage.
public percentage(): floatReturns the executed line coverage as a formatted percentage string.
public percentageAsString(): string