PHP Класс PhpBench\Tests\Unit\Benchmark\VariantTest

Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
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 ( )