Property | Type | Description | |
---|---|---|---|
$executionTime | |||
$executionTimeEdge | integer | Time in milliseconds we consider a test has a need to see if a refactor is needed | |
$memoryPeakDifferenceEdge | integer | Memory bytes usage we consider a test has a need to see if a refactor is needed | |
$memoryPeakIncrease | |||
$memoryUsage | |||
$memoryUsageEdge | integer | Memory bytes usage we consider a test has a need to see if a refactor is needed | |
$showOnlyIfEdgeIsExceeded | boolean | ||
$testMeasurementCollection | PhpunitMemoryAndTimeUsageListener\Domain\Measurement\TestMeasurement[] | ||
$testSuitesRunning | integer |
Method | Description | |
---|---|---|
__construct ( $configurationOptions = [] ) | ||
addError ( PHPUnit_Framework_Test $test, Exception $exception, float $time ) | ||
addFailure ( PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $exception, float $time ) | ||
addIncompleteTest ( PHPUnit_Framework_Test $test, Exception $exception, float $time ) | ||
addRiskyTest ( PHPUnit_Framework_Test $test, Exception $exception, float $time ) | ||
addSkippedTest ( PHPUnit_Framework_Test $test, Exception $exception, float $time ) | ||
endTest ( PHPUnit_Framework_Test $test, $time ) | ||
endTestSuite ( PHPUnit_Framework_TestSuite $suite ) | ||
startTest ( PHPUnit_Framework_Test $test ) | ||
startTestSuite ( PHPUnit_Framework_TestSuite $suite ) |
Method | Description | |
---|---|---|
checkEdgeIsOverTaken ( $value, $edgeValue ) : boolean | ||
haveToSaveTestMeasurement ( ) : boolean | ||
isAPotentialCriticalMemoryPeakUsage ( ) : boolean | Check if test execution memory peak usage is critical so we need to check it out | |
isAPotentialCriticalMemoryUsage ( ) : boolean | Check if test execution memory usage is critical so we need to check it out | |
isAPotentialCriticalTimeUsage ( ) : boolean | Check if test execution time is critical so we need to check it out | |
setConfigurationOptions ( $configurationOptions ) |
public addFailure ( PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $exception, float $time ) | ||
$test | PHPUnit_Framework_Test | |
$exception | PHPUnit_Framework_AssertionFailedError | |
$time | float |
public addIncompleteTest ( PHPUnit_Framework_Test $test, Exception $exception, float $time ) | ||
$test | PHPUnit_Framework_Test | |
$exception | Exception | |
$time | float |
public addRiskyTest ( PHPUnit_Framework_Test $test, Exception $exception, float $time ) | ||
$test | PHPUnit_Framework_Test | |
$exception | Exception | |
$time | float |
public addSkippedTest ( PHPUnit_Framework_Test $test, Exception $exception, float $time ) | ||
$test | PHPUnit_Framework_Test | |
$exception | Exception | |
$time | float |
protected checkEdgeIsOverTaken ( $value, $edgeValue ) : boolean | ||
$value | ||
$edgeValue | ||
return | boolean |
public endTest ( PHPUnit_Framework_Test $test, $time ) | ||
$test | PHPUnit_Framework_Test | |
$time |
public endTestSuite ( PHPUnit_Framework_TestSuite $suite ) | ||
$suite | PHPUnit_Framework_TestSuite |
protected haveToSaveTestMeasurement ( ) : boolean | ||
return | boolean |
protected isAPotentialCriticalMemoryPeakUsage ( ) : boolean | ||
return | boolean |
protected isAPotentialCriticalMemoryUsage ( ) : boolean | ||
return | boolean |
protected isAPotentialCriticalTimeUsage ( ) : boolean | ||
return | boolean |
protected setConfigurationOptions ( $configurationOptions ) | ||
$configurationOptions |
public startTest ( PHPUnit_Framework_Test $test ) | ||
$test | PHPUnit_Framework_Test |
public startTestSuite ( PHPUnit_Framework_TestSuite $suite ) | ||
$suite | PHPUnit_Framework_TestSuite |
protected TimeMeasurement,PhpunitMemoryAndTimeUsageListener\Domain\Measurement $executionTime | ||
return |
protected int $executionTimeEdge | ||
return | integer |
protected int $memoryPeakDifferenceEdge | ||
return | integer |
protected int $memoryUsageEdge | ||
return | integer |
protected bool $showOnlyIfEdgeIsExceeded | ||
return | boolean |
protected TestMeasurement[],PhpunitMemoryAndTimeUsageListener\Domain\Measurement $testMeasurementCollection | ||
return | PhpunitMemoryAndTimeUsageListener\Domain\Measurement\TestMeasurement[] |