abstract class AbstractGenerator

Base class for code coverage report generators.

Constants

protected LineDead

protected LineTested

protected LineUntested

Properties

list<string> $acceptFiles
protected array<string,array<int,int>> $data
protected string[] $sources
protected $totalSum
protected $coveredSum

Methods

__construct(string $file, array $sources = [])

No description

void
render(string|null $file = null)

No description

float
getCoveredPercent()

No description

getSourceIterator()

No description

static string
getCommonFilesPath(array $files) deprecated

No description

void
renderSelf()

No description

Details

at line 40
__construct(string $file, array $sources = [])

No description

Parameters

string $file

path to coverage.dat file

array $sources

paths to covered source files or directories

at line 64
void render(string|null $file = null)

No description

Parameters

string|null $file

Return Value

void

at line 93
float getCoveredPercent()

No description

Return Value

float

at line 99
protected Iterator getSourceIterator()

No description

Return Value

Iterator

at line 122
static protected string getCommonFilesPath(array $files) deprecated

deprecated

No description

Parameters

array $files

Return Value

string

at line 128
abstract protected void renderSelf()

No description

Return Value

void