PHP Class PhpBench\Tests\Unit\Benchmark\RunnerContextTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: dantleech/phpbench

Public Methods

Method Description
testDefaults ( ) Default should be used if no explict value set in the context.
testGetParameterSets ( ) The overridden parameter sets should be nested in an array of an array.
testGetters ( ) It should throw an exception if iterations is not numeric.
testIterationsNotNumeric ( ) It should throw an exception if the iterations is not numeric.
testNullPath ( ) It should throw an exception if the path is null.
testOverride ( ) Defaults should be ignored if explicit values are set in the context.
testRetryLessThanZetro ( ) It should throw an exception if the retry threshold is less than zero.
testRetryNotNumeric ( ) It should throw an exception if the retry threshold is not numeric.
testRevolutionsNotNumeric ( ) It should throw an exception if the revolutions are not numeric.
testUnknownOptions ( ) It should throw an exception if unrecognized options are given.
testWarmupNotNumeric ( ) It should throw an exception if the warmup is not numeric.

Method Details

testDefaults() public method

Default should be used if no explict value set in the context.
public testDefaults ( )

testGetParameterSets() public method

The overridden parameter sets should be nested in an array of an array.

testGetters() public method

It should throw an exception if iterations is not numeric.
public testGetters ( )

testIterationsNotNumeric() public method

It should throw an exception if the iterations is not numeric.

testNullPath() public method

It should throw an exception if the path is null.
public testNullPath ( )

testOverride() public method

Defaults should be ignored if explicit values are set in the context.
public testOverride ( )

testRetryLessThanZetro() public method

It should throw an exception if the retry threshold is less than zero.

testRetryNotNumeric() public method

It should throw an exception if the retry threshold is not numeric.
public testRetryNotNumeric ( )

testRevolutionsNotNumeric() public method

It should throw an exception if the revolutions are not numeric.

testUnknownOptions() public method

It should throw an exception if unrecognized options are given.
public testUnknownOptions ( )

testWarmupNotNumeric() public method

It should throw an exception if the warmup is not numeric.