CoverageSummary
Represents the line coverage summary extracted from a PHPUnit `coverage-php` report.
Properties
Methods
Initializes a new instance of the CoverageSummary class.
Returns the total number of executable lines.
Returns the number of executable lines that were executed.
Returns the executed line coverage as a percentage.
Returns the executed line coverage as a formatted percentage string.
Initializes a new instance of the CoverageSummary class.
public
__construct(
int
$executedLines,
int
$executableLines) : mixed
Parameters
$executedLines
:
int
Description
Number of executable lines covered
$executableLines
:
int
Description
Total executable lines in the analyzed code
Returns the total number of executable lines.
public
executableLines() : int
Return values
Returns the number of executable lines that were executed.
public
executedLines() : int
Return values
Returns the executed line coverage as a percentage.
public
percentage() : float
Return values
Returns the executed line coverage as a formatted percentage string.
public
percentageAsString() : string