Loads line coverage metrics from the serialized PHPUnit `coverage-php` output.
Interfaces
CoverageSummaryLoaderInterface
Loads PHPUnit `coverage-php` reports and exposes their line coverage summary.
Methods
load()
: CoverageSummary
Loads the coverage summary from a PHPUnit `coverage-php` report file.
Loads the coverage summary from a PHPUnit `coverage-php` report file.
public
load(
string
$coverageReportPath) : CoverageSummary
Parameters
$coverageReportPath
:
string
Description
Path to the PHPUnit coverage-php report file
throws
RuntimeException
Description
When the report file does not exist or contains invalid data
Return values
Description
Extracted line coverage summary