PHP Class PhpBench\Tests\Unit\Benchmark\Metadata\FactoryTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: dantleech/phpbench

Public Methods

Method Description
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.

Method Details

setUp() public method

public setUp ( )

testEmptyClassHierachy() public method

It should return null if the class hierarchy is empty.

testGetMetadataForFile() public method

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

testInvalidParameters() public method

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

testValidationAfterMethods() public method

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

testValidationBeforeClassMethodsBenchmarkNotStatic() public method

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

testValidationBeforeMethodsBenchmark() public method

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

testValidationBeforeMethodsBenchmarkIsStatic() public method

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

testValidationBeforeMethodsSubject() public method

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

testWithSubjects() public method

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