PHP 클래스 PhpBench\Tests\Unit\Benchmark\VariantTest

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: dantleech/phpbench

공개 메소드들

메소드 설명
setUp ( )
testComputeDeviationZeroIterations ( ) It should not crash if compute deviations is called with zero variant in the collection.
testComputeStats ( ) It should calculate the stats of each iteration from the mean.
testCreateIteration ( ) It should create new iterations with the correct indexes.
testExceptionAwareness ( ) It should be aware of exceptions.
testExceptionNoneGet ( ) It should return a new ErrorStack if none has not been set.
testGetMetricValues ( ) It should return times and memories.
testGetStatsNoComputeException ( ) It should throw an exception if getStats is called when no computation has taken place.
testGetStatsWithExceptionException ( ) It should throw an exception if getStats is called when an exception has been set.
testIterationSpawn ( ) It should spawn variant.
testReject ( ) It should mark variant as rejected if they deviate too far from the mean.

비공개 메소드들

메소드 설명
createIteration ( $time, $expectedDeviation = null, $expectedZValue = null )

메소드 상세

setUp() 공개 메소드

public setUp ( )

testComputeDeviationZeroIterations() 공개 메소드

It should not crash if compute deviations is called with zero variant in the collection.

testComputeStats() 공개 메소드

It should calculate the stats of each iteration from the mean.
public testComputeStats ( )

testCreateIteration() 공개 메소드

It should create new iterations with the correct indexes.
public testCreateIteration ( )

testExceptionAwareness() 공개 메소드

It should be aware of exceptions.

testExceptionNoneGet() 공개 메소드

It should return a new ErrorStack if none has not been set.

testGetMetricValues() 공개 메소드

It should return times and memories.
public testGetMetricValues ( )

testGetStatsNoComputeException() 공개 메소드

It should throw an exception if getStats is called when no computation has taken place.

testGetStatsWithExceptionException() 공개 메소드

It should throw an exception if getStats is called when an exception has been set.

testIterationSpawn() 공개 메소드

It should be iterable It sohuld be countable.
public testIterationSpawn ( )

testReject() 공개 메소드

It should mark variant as rejected if they deviate too far from the mean.
public testReject ( )