class SlowTestTracker

Methods

__construct(float $threshold = 0.5)

Create a new slow test tracker.

void
startTest(string $testId, float $time)

Start tracking a test.

void
endTest(string $testId, string $testName, float $time)

Stop tracking a test.

array
getSlowTests()

Get the slow tests.

Details

at line 31
__construct(float $threshold = 0.5)

Create a new slow test tracker.

Parameters

float $threshold

at line 39
void startTest(string $testId, float $time)

Start tracking a test.

Parameters

string $testId
float $time

Return Value

void

at line 47
void endTest(string $testId, string $testName, float $time)

Stop tracking a test.

Parameters

string $testId
string $testName
float $time

Return Value

void

at line 70
array getSlowTests()

Get the slow tests.

Return Value

array