class RerunTotalStatistics implements Statistics (View source)

Copy paste of Behat\Behat\Output\Statistics\TotalStatistics which is a final class

Modified to remove duplicated stats from reruns

Methods

public
__construct()

Initializes statistics.

public
resetAllCounters()

No description

public
startTimer()

Starts timer.

public
stopTimer()

Stops timer.

public
Timer
getTimer()

Returns timer object.

public
Memory
getMemory()

Returns memory usage object.

public
registerScenarioStat(ScenarioStat $stat)

Registers scenario stat.

public
registerStepStat(StepStat $stat)

Registers step stat.

public
registerHookStat(HookStat $stat)

Registers hook stat.

public
array[]
getScenarioStatCounts()

Returns counters for different scenario result codes.

public
ScenarioStat[]
getSkippedScenarios()

Returns skipped scenario stats.

public
ScenarioStat[]
getFailedScenarios()

Returns failed scenario stats.

public
array[]
getStepStatCounts()

Returns counters for different step result codes.

public
StepStat[]
getFailedSteps()

Returns failed step stats.

public
StepStat[]
getPendingSteps()

Returns pending step stats.

public
HookStat[]
getFailedHookStats()

Returns failed hook stats.

Details

__construct()

Initializes statistics.

resetAllCounters()

No description

startTimer()

Starts timer.

stopTimer()

Stops timer.

Timer getTimer()

Returns timer object.

Return Value

Timer

Memory getMemory()

Returns memory usage object.

Return Value

Memory

registerScenarioStat(ScenarioStat $stat)

Registers scenario stat.

Parameters

ScenarioStat $stat

registerStepStat(StepStat $stat)

Registers step stat.

Parameters

StepStat $stat

registerHookStat(HookStat $stat)

Registers hook stat.

Parameters

HookStat $stat

array[] getScenarioStatCounts()

Returns counters for different scenario result codes.

Return Value

array[]

ScenarioStat[] getSkippedScenarios()

Returns skipped scenario stats.

Return Value

ScenarioStat[]

ScenarioStat[] getFailedScenarios()

Returns failed scenario stats.

Return Value

ScenarioStat[]

array[] getStepStatCounts()

Returns counters for different step result codes.

Return Value

array[]

StepStat[] getFailedSteps()

Returns failed step stats.

Return Value

StepStat[]

StepStat[] getPendingSteps()

Returns pending step stats.

Return Value

StepStat[]

HookStat[] getFailedHookStats()

Returns failed hook stats.

Return Value

HookStat[]