PHP Class PhpBench\Tests\Benchmark\RunnerTest

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: dantleech/phpbench

Public Methods

Method Description
provideRunner ( )
setUp ( )
testBeforeAndAfterClass ( ) It should call the before and after class methods.
testEnvironment ( ) It should add environmental information to the DOM.
testHandleExceptions ( ) It should handle exceptions thrown by the executor.
testOverrideThings ( ) It should allow the sleep value to be overridden.
testRetryThreshold ( ) It should serialize the retry threshold.
testRunner ( $iterations, $revs, array $parameters, $assertionCallbacks ) It should run the tests.
testSkip ( ) It should skip subjects that should be skipped.
testSleep ( ) It should set the sleep attribute in the DOM.
testWarmup ( ) It should set the warmup attribute in the DOM.

Private Methods

Method Description
assertNoErrors ( Suite $suite )
loadIterationResultCallback ( array $times = ['10'] )

Method Details

provideRunner() public method

public provideRunner ( )

setUp() public method

public setUp ( )

testBeforeAndAfterClass() public method

It should call the before and after class methods.

testEnvironment() public method

It should add environmental information to the DOM.
public testEnvironment ( )

testHandleExceptions() public method

It should handle nested exceptions.

testOverrideThings() public method

It should allow the warmup value to be overridden. It should allow the revs value to be overridden. It should allow the retry threshold value to be overridden.
public testOverrideThings ( )

testRetryThreshold() public method

It should serialize the retry threshold.
public testRetryThreshold ( )

testRunner() public method

- With 1 iteration, 1 revolution - With 1 iteration, 4 revolutions
public testRunner ( $iterations, $revs, array $parameters, $assertionCallbacks )
$parameters array

testSkip() public method

It should skip subjects that should be skipped.
public testSkip ( )

testSleep() public method

It should set the sleep attribute in the DOM.
public testSleep ( )

testWarmup() public method

It should set the warmup attribute in the DOM.
public testWarmup ( )