PHP Класс PhpBench\Tests\Unit\Benchmark\Metadata\FactoryTest

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

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

Метод Описание
setUp ( )
testEmptyClassHierachy ( ) It should return null if the class hierarchy is empty.
testGetMetadataForFile ( ) It can retrieve the metadata for a file containing a class.
testInvalidParameters ( ) It should throw an exception if the parameters are not in a valid format.
testValidationAfterMethods ( ) It should throw an exception if an after method does not exist.
testValidationBeforeClassMethodsBenchmarkNotStatic ( ) It should throw an exception if a before class method is not static.
testValidationBeforeMethodsBenchmark ( ) It should throw an exception if a before/after method does not exist on the benchmark.
testValidationBeforeMethodsBenchmarkIsStatic ( ) It should throw an exception if a before method IS static.
testValidationBeforeMethodsSubject ( ) It should throw an exception if a before/after method does not exist on the subject.
testWithSubjects ( ) It will return a benchmark populated with subjects.

Описание методов

setUp() публичный Метод

public setUp ( )

testEmptyClassHierachy() публичный Метод

It should return null if the class hierarchy is empty.

testGetMetadataForFile() публичный Метод

It can retrieve the metadata for a file containing a class.

testInvalidParameters() публичный Метод

It should throw an exception if the parameters are not in a valid format.

testValidationAfterMethods() публичный Метод

It should throw an exception if an after method does not exist.

testValidationBeforeClassMethodsBenchmarkNotStatic() публичный Метод

It should throw an exception if a before class method is not static.

testValidationBeforeMethodsBenchmark() публичный Метод

It should throw an exception if a before/after method does not exist on the benchmark.

testValidationBeforeMethodsBenchmarkIsStatic() публичный Метод

It should throw an exception if a before method IS static.

testValidationBeforeMethodsSubject() публичный Метод

It should throw an exception if a before/after method does not exist on the subject.

testWithSubjects() публичный Метод

It will return a benchmark populated with subjects.
public testWithSubjects ( )