PHP Class PhpBench\Tests\Benchmark\RunnerTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: dantleech/phpbench

Méthodes publiques

Méthode 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

Méthode Description
assertNoErrors ( Suite $suite )
loadIterationResultCallback ( array $times = ['10'] )

Method Details

provideRunner() public méthode

public provideRunner ( )

setUp() public méthode

public setUp ( )

testBeforeAndAfterClass() public méthode

It should call the before and after class methods.

testEnvironment() public méthode

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

testHandleExceptions() public méthode

It should handle nested exceptions.

testOverrideThings() public méthode

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 méthode

It should serialize the retry threshold.
public testRetryThreshold ( )

testRunner() public méthode

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

testSkip() public méthode

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

testSleep() public méthode

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

testWarmup() public méthode

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