PHP Class BetterReflectionTest\Reflection\ReflectionObjectTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: roave/better-reflection

Public Methods

Method Description
reflectionClassMethodProvider ( ) : array This data provider gets all the public methods from ReflectionClass, but filters out a few methods we want to test manually
testCannotClone ( )
testCreateFromNameThrowsException ( )
testCreateFromNodeThrowsException ( )
testExceptionThrownWhenInvalidInstanceGiven ( )
testExceptionThrownWhenNonObjectGiven ( )
testReflectionObjectExportMatchesExpectation ( )
testReflectionObjectOverridesAllMethodsInReflectionClass ( string $methodName ) This test loops through the DataProvider (which provides a list of public methods from ReflectionClass), ensures the method exists in ReflectionObject and that when the method is called on ReflectionObject, the method of the same name on ReflectionClass is also called.
testReflectionWorksWithDynamicallyDeclaredMembers ( )
testReflectionWorksWithEvaledClasses ( )
testReflectionWorksWithInternalClasses ( )

Private Methods

Method Description
getPhpParser ( ) : PhpParser\Parser

Method Details

reflectionClassMethodProvider() public method

This data provider gets all the public methods from ReflectionClass, but filters out a few methods we want to test manually

testCannotClone() public method

public testCannotClone ( )

testCreateFromNameThrowsException() public method

testCreateFromNodeThrowsException() public method

testExceptionThrownWhenInvalidInstanceGiven() public method

testExceptionThrownWhenNonObjectGiven() public method

testReflectionObjectExportMatchesExpectation() public method

testReflectionObjectOverridesAllMethodsInReflectionClass() public method

This test loops through the DataProvider (which provides a list of public methods from ReflectionClass), ensures the method exists in ReflectionObject and that when the method is called on ReflectionObject, the method of the same name on ReflectionClass is also called.

testReflectionWorksWithDynamicallyDeclaredMembers() public method

testReflectionWorksWithEvaledClasses() public method

testReflectionWorksWithInternalClasses() public method