PHP Класс PhpBench\Tests\Unit\Benchmark\Remote\ReflectorTest

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

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

Метод Описание
setUp ( )
testGetParameterSets ( ) It should return the parameter sets from a benchmark class.
testGetParameterSetsNonScalar ( ) It should throw an exception if the parameter set contains non-scalar values.
testHierarchy ( ) It should inherit metadata from parent classes.
testMultipleClassKeywords ( ) It should parse a class which has multiple class keywords and return the first declared class.
testReflector ( ) It should return information about a class in a different application.
testReflector20LineFile ( ) It should parse a file whose class declaration is on the 20th line.
testReflectorNoClass ( ) It should return an empty class hierarchy if no classes are found in a file.

Описание методов

setUp() публичный Метод

public setUp ( )

testGetParameterSets() публичный Метод

It should return the parameter sets from a benchmark class.

testGetParameterSetsNonScalar() публичный Метод

It should throw an exception if the parameter set contains non-scalar values.

testHierarchy() публичный Метод

It should inherit metadata from parent classes.
public testHierarchy ( )

testMultipleClassKeywords() публичный Метод

It should parse a class which has multiple class keywords and return the first declared class.

testReflector() публичный Метод

It should return information about a class in a different application.
public testReflector ( )

testReflector20LineFile() публичный Метод

See: https://github.com/phpbench/phpbench/issues/325.

testReflectorNoClass() публичный Метод

It should return an empty class hierarchy if no classes are found in a file.