PHP Класс PhpBench\Tests\Unit\Benchmark\Metadata\Driver\AnnotationDriverTest

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

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

Метод Описание
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 ( )