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

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: dantleech/phpbench

Méthodes publiques

Méthode 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

Méthode Description
createDriver ( $prefix = '^bench' )

Method Details

provideClassMethodsOnMethodException() public méthode

setUp() public méthode

public setUp ( )

testArrayElements() public méthode

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

testClassMethodsOnException() public méthode

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 méthode

It should allow a custom subject pattern.

testIgnoreCommonAnnotations() public méthode

It should ignore common annotations.

testLoadClassMetadata() public méthode

It should return class metadata according to annotations.

testLoadIgnoreNonPrefixed() public méthode

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

testLoadSubject() public méthode

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

testLoadSubjectMerge() public méthode

It should merge class parent classes.

testLoadSubjectNonPrefixed() public méthode

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

testLoadSubjectOverride() public méthode

Subject metadata should override class metadata.

testMetadataExtend() public méthode

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

testSubjectOptionalValues() public méthode

Test optional values.

testUsefulException() public méthode

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