PHP Class PhpBench\Tests\Unit\Benchmark\BaselineManagerTest

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

Public Properties

Property Type Description
$callCount

Public Methods

Method Description
baselineExample ( $revs )
setUp ( )
testCallable ( ) It should measure the mean time taken to execute a callable.
testCallableNotCallable ( ) It should throw an exception if the callable is not callable (string).
testCallableNotCallableObject ( ) It should throw an exception if the callable is not callable (object).
testRegisterTwice ( ) It should throw an exception if a baseline callable name already exists.

Method Details

baselineExample() public static method

public static baselineExample ( $revs )

setUp() public method

public setUp ( )

testCallable() public method

@\PhpBench\Benchmark\Metadata\Annotations\Subject() @\PhpBench\Benchmark\Metadata\Annotations\Iterations(100)
public testCallable ( )

testCallableNotCallable() public method

It should throw an exception if the callable is not callable (string).

testCallableNotCallableObject() public method

It should throw an exception if the callable is not callable (object).

testRegisterTwice() public method

It should throw an exception if a baseline callable name already exists.
public testRegisterTwice ( )

Property Details

$callCount public_oe static_oe property

public static $callCount