PHP Class PhpBench\Tests\Unit\Benchmark\BaselineManagerTest

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

Méthodes publiques

Свойство Type Description
$callCount

Méthodes publiques

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

public static baselineExample ( $revs )

setUp() public méthode

public setUp ( )

testCallable() public méthode

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

testCallableNotCallable() public méthode

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

testCallableNotCallableObject() public méthode

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

testRegisterTwice() public méthode

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