PHP Класс PhpBench\Tests\Unit\Model\ResultCollectionTest

Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
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.