PHP Class PhpBench\Tests\Unit\Benchmark\Metadata\Driver\AnnotationDriverTest

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

Public Methods

Method Description
provideClassMethodsOnMethodException ( )
setUp ( )
testArrayElements ( ) It should allow multiple array elements for warmup, iterations and revolutions.
testClassMethodsOnException ( $annotation ) It should raise an exception if either before or after class methods are specified at the method level rather than the class level.
testCustomSubjectPattern ( ) It should allow a custom subject pattern.
testIgnoreCommonAnnotations ( ) It should ignore common annotations.
testLoadClassMetadata ( ) It should return class metadata according to annotations.
testLoadIgnoreNonPrefixed ( ) It should ignore non-prefixed subjects without the Subject annotation.
testLoadSubject ( ) It should return method metadata according to annotations.
testLoadSubjectMerge ( ) It should merge class parent classes.
testLoadSubjectNonPrefixed ( ) It should return method metadata for non-prefixed methods with the Subject annotation.
testLoadSubjectOverride ( ) Subject metadata should override class metadata.
testMetadataExtend ( ) It should extend values of previous annotations when the "extend" option is true.
testSubjectOptionalValues ( ) Test optional values.
testUsefulException ( ) It should throw a helpful exception when an annotation is not recognized.

Private Methods

Method Description
createDriver ( $prefix = '^bench' )

Method Details

provideClassMethodsOnMethodException() public method

setUp() public method

public setUp ( )

testArrayElements() public method

It should allow multiple array elements for warmup, iterations and revolutions.
public testArrayElements ( )

testClassMethodsOnException() public method

It should raise an exception if either before or after class methods are specified at the method level rather than the class level.
public testClassMethodsOnException ( $annotation )

testCustomSubjectPattern() public method

It should allow a custom subject pattern.

testIgnoreCommonAnnotations() public method

It should ignore common annotations.

testLoadClassMetadata() public method

It should return class metadata according to annotations.

testLoadIgnoreNonPrefixed() public method

It should ignore non-prefixed subjects without the Subject annotation.

testLoadSubject() public method

It should return method metadata according to annotations.
public testLoadSubject ( )

testLoadSubjectMerge() public method

It should merge class parent classes.

testLoadSubjectNonPrefixed() public method

It should return method metadata for non-prefixed methods with the Subject annotation.

testLoadSubjectOverride() public method

Subject metadata should override class metadata.

testMetadataExtend() public method

It should extend values of previous annotations when the "extend" option is true.
public testMetadataExtend ( )

testSubjectOptionalValues() public method

Test optional values.

testUsefulException() public method

It should throw a helpful exception when an annotation is not recognized.
public testUsefulException ( )