PHP 클래스 PhpunitMemoryAndTimeUsageListener\Listener\Measurement\TimeAndMemoryTestListener

상속: implements PHPUnit_Framework_TestListener
파일 보기 프로젝트 열기: atrapalo/phpunit-memory-and-time-usage-listener

보호된 프로퍼티들

프로퍼티 타입 설명
$executionTime PhpunitMemoryAndTimeUsageListener\Domain\Measurement\TimeMeasurement
$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

공개 메소드들

메소드 설명
__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 )

보호된 메소드들

메소드 설명
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 )

메소드 상세

__construct() 공개 메소드

public __construct ( $configurationOptions = [] )

addError() 공개 메소드

public addError ( PHPUnit_Framework_Test $test, Exception $exception, float $time )
$test PHPUnit_Framework_Test
$exception Exception
$time float

addFailure() 공개 메소드

public addFailure ( PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $exception, float $time )
$test PHPUnit_Framework_Test
$exception PHPUnit_Framework_AssertionFailedError
$time float

addIncompleteTest() 공개 메소드

public addIncompleteTest ( PHPUnit_Framework_Test $test, Exception $exception, float $time )
$test PHPUnit_Framework_Test
$exception Exception
$time float

addRiskyTest() 공개 메소드

public addRiskyTest ( PHPUnit_Framework_Test $test, Exception $exception, float $time )
$test PHPUnit_Framework_Test
$exception Exception
$time float

addSkippedTest() 공개 메소드

public addSkippedTest ( PHPUnit_Framework_Test $test, Exception $exception, float $time )
$test PHPUnit_Framework_Test
$exception Exception
$time float

checkEdgeIsOverTaken() 보호된 메소드

protected checkEdgeIsOverTaken ( $value, $edgeValue ) : boolean
$value
$edgeValue
리턴 boolean

endTest() 공개 메소드

public endTest ( PHPUnit_Framework_Test $test, $time )
$test PHPUnit_Framework_Test
$time

endTestSuite() 공개 메소드

public endTestSuite ( PHPUnit_Framework_TestSuite $suite )
$suite PHPUnit_Framework_TestSuite

haveToSaveTestMeasurement() 보호된 메소드

protected haveToSaveTestMeasurement ( ) : boolean
리턴 boolean

isAPotentialCriticalMemoryPeakUsage() 보호된 메소드

Check if test execution memory peak usage is critical so we need to check it out

isAPotentialCriticalMemoryUsage() 보호된 메소드

Check if test execution memory usage is critical so we need to check it out

isAPotentialCriticalTimeUsage() 보호된 메소드

Check if test execution time is critical so we need to check it out

setConfigurationOptions() 보호된 메소드

protected setConfigurationOptions ( $configurationOptions )
$configurationOptions

startTest() 공개 메소드

public startTest ( PHPUnit_Framework_Test $test )
$test PHPUnit_Framework_Test

startTestSuite() 공개 메소드

public startTestSuite ( PHPUnit_Framework_TestSuite $suite )
$suite PHPUnit_Framework_TestSuite

프로퍼티 상세

$executionTime 보호되어 있는 프로퍼티

protected TimeMeasurement,PhpunitMemoryAndTimeUsageListener\Domain\Measurement $executionTime
리턴 PhpunitMemoryAndTimeUsageListener\Domain\Measurement\TimeMeasurement

$executionTimeEdge 보호되어 있는 프로퍼티

Time in milliseconds we consider a test has a need to see if a refactor is needed
protected int $executionTimeEdge
리턴 integer

$memoryPeakDifferenceEdge 보호되어 있는 프로퍼티

Memory bytes usage we consider a test has a need to see if a refactor is needed
protected int $memoryPeakDifferenceEdge
리턴 integer

$memoryPeakIncrease 보호되어 있는 프로퍼티

protected $memoryPeakIncrease

$memoryUsage 보호되어 있는 프로퍼티

protected $memoryUsage

$memoryUsageEdge 보호되어 있는 프로퍼티

Memory bytes usage we consider a test has a need to see if a refactor is needed
protected int $memoryUsageEdge
리턴 integer

$showOnlyIfEdgeIsExceeded 보호되어 있는 프로퍼티

protected bool $showOnlyIfEdgeIsExceeded
리턴 boolean

$testMeasurementCollection 보호되어 있는 프로퍼티

protected TestMeasurement[],PhpunitMemoryAndTimeUsageListener\Domain\Measurement $testMeasurementCollection
리턴 PhpunitMemoryAndTimeUsageListener\Domain\Measurement\TestMeasurement[]

$testSuitesRunning 보호되어 있는 프로퍼티

protected int $testSuitesRunning
리턴 integer