PHP Class PhpBench\Tests\Unit\Model\ResultCollectionTest

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

Public Methods

Method Description
setUp ( )
testAddConstructor ( ) It can have results added in the constructor.
testAddResult ( ) It should be able to have results added to it.
testGetMetricOrDefault ( ) It should return a default value when using getMetricOrDefault when the class has not been set.
testGetNamedMetric ( ) It should return a named metric.
testNamedMetricDoesNotExist ( ) It should throw an exception if the named metric does not exist.
testNonExistantClass ( ) It should throw an exception when retrieving a non-existant class.

Method Details

setUp() public method

public setUp ( )

testAddConstructor() public method

It can have results added in the constructor.
public testAddConstructor ( )

testAddResult() public method

It should retrive results.
public testAddResult ( )

testGetMetricOrDefault() public method

It should return a default value when using getMetricOrDefault when the class has not been set.

testGetNamedMetric() public method

It should return a named metric.
public testGetNamedMetric ( )

testNamedMetricDoesNotExist() public method

It should throw an exception if the named metric does not exist.

testNonExistantClass() public method

It should throw an exception when retrieving a non-existant class.