PHP Class PhpBench\Tests\Unit\Benchmark\Remote\ReflectorTest

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

Public Methods

Method Description
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.

Method Details

setUp() public method

public setUp ( )

testGetParameterSets() public method

It should return the parameter sets from a benchmark class.

testGetParameterSetsNonScalar() public method

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

testHierarchy() public method

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

testMultipleClassKeywords() public method

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

testReflector() public method

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

testReflector20LineFile() public method

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

testReflectorNoClass() public method

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