PHP 클래스 PhpBench\Tests\Unit\Benchmark\Metadata\Driver\AnnotationDriverTest

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: dantleech/phpbench

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
createDriver ( $prefix = '^bench' )

메소드 상세

provideClassMethodsOnMethodException() 공개 메소드

setUp() 공개 메소드

public setUp ( )

testArrayElements() 공개 메소드

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

testClassMethodsOnException() 공개 메소드

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() 공개 메소드

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.
public testLoadSubject ( )

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.
public testMetadataExtend ( )

testSubjectOptionalValues() 공개 메소드

Test optional values.

testUsefulException() 공개 메소드

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