class Coverage

Properties

protected string $path

The path that PHPUnit should write serialized coverage data to.

Methods

__construct()

Create a new coverage reporter.

static bool
isAvailable()

Determine whether code coverage can be collected.

static bool
usingXdebug()

Determine whether Xdebug is the active coverage driver.

string
path()

Get the path for serialized coverage data.

float
report(OutputInterface $output)

Render the coverage report and return line coverage percentage.

void
cleanup()

Remove temporary coverage data.

Details

at line 23
__construct()

Create a new coverage reporter.

at line 32
static bool isAvailable()

Determine whether code coverage can be collected.

Return Value

bool

at line 40
static bool usingXdebug()

Determine whether Xdebug is the active coverage driver.

Return Value

bool

at line 48
string path()

Get the path for serialized coverage data.

Return Value

string

at line 56
float report(OutputInterface $output)

Render the coverage report and return line coverage percentage.

Parameters

OutputInterface $output

Return Value

float

at line 75
void cleanup()

Remove temporary coverage data.

Return Value

void