PHP Class PhpBench\Tests\Unit\Benchmark\Executor\MicrotimeExecutorTest

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

Public Methods

Method Description
setUp ( )
tearDown ( )
testExecute ( ) It should create a script which benchmarks the code and returns the time taken and the memory used.
testExecuteAfter ( ) It should execute methods after the benchmark subject.
testExecuteBefore ( ) It should execute methods before the benchmark subject.
testExecuteMethods ( ) It should execute arbitrary methods on the benchmark class.
testParameters ( ) It should pass parameters to the benchmark method.
testParametersBeforeSubject ( ) It should pass parameters to the before metadata and after metadata methods.
testRepressOutput ( ) It should prevent output from the benchmarking class.

Private Methods

Method Description
removeTemporaryFiles ( )

Method Details

setUp() public method

public setUp ( )

tearDown() public method

public tearDown ( )

testExecute() public method

It should create a script which benchmarks the code and returns the time taken and the memory used.
public testExecute ( )

testExecuteAfter() public method

It should execute methods after the benchmark subject.
public testExecuteAfter ( )

testExecuteBefore() public method

It should execute methods before the benchmark subject.
public testExecuteBefore ( )

testExecuteMethods() public method

It should execute arbitrary methods on the benchmark class.
public testExecuteMethods ( )

testParameters() public method

It should pass parameters to the benchmark method.
public testParameters ( )

testParametersBeforeSubject() public method

It should pass parameters to the before metadata and after metadata methods.

testRepressOutput() public method

It should prevent output from the benchmarking class.
public testRepressOutput ( )