PHP 클래스 PhpBench\Tests\Unit\Model\ResultCollectionTest

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: dantleech/phpbench

공개 메소드들

메소드 설명
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.

메소드 상세

setUp() 공개 메소드

public setUp ( )

testAddConstructor() 공개 메소드

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

testAddResult() 공개 메소드

It should retrive results.
public testAddResult ( )

testGetMetricOrDefault() 공개 메소드

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

testGetNamedMetric() 공개 메소드

It should return a named metric.
public testGetNamedMetric ( )

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.