class Collector

Collects code coverage data from a test process and merges it into a shared file.

Constants

EnginePcov

EnginePhpdbg

EngineXdebug

Methods

static array
detectEngines()

No description

static bool
isStarted()

No description

static void
start(string $file, string $engine)

Starts gathering the information for code coverage.

static void
flush()

Writes collected coverage to file and resets the oplog. Only effective with the PHPDBG engine.

static void
save()

Merges the current coverage data into the shared coverage file using an exclusive lock.

Details

at line 29
static array detectEngines()

No description

Return Value

array

at line 39
static bool isStarted()

No description

Return Value

bool

at line 49
static void start(string $file, string $engine)

Starts gathering the information for code coverage.

Parameters

string $file
string $engine

Return Value

void

Exceptions

LogicException

at line 75
static void flush()

Writes collected coverage to file and resets the oplog. Only effective with the PHPDBG engine.

Return Value

void

at line 87
static void save()

Merges the current coverage data into the shared coverage file using an exclusive lock.

Return Value

void

Exceptions

LogicException