PHP Class BetterReflectionTest\SourceLocator\Type\PhpInternalSourceLocatorTest

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: roave/better-reflection

Public Methods

Method Description
internalSymbolsProvider ( ) : string[]
stubbedClassesProvider ( ) : string[][]
testAllGeneratedStubsAreInSyncWithInternalReflectionClasses ( string $className )
testCanFetchInternalLocatedSource ( string $className )
testCanReflectInternalClasses ( string $className )
testReturnsNullForFunctions ( )
testReturnsNullForNonExistentCode ( )

Private Methods

Method Description
assertSameClassAttributes ( ReflectionClass $original, ReflectionClass $stubbed )
assertSameMethodAttributes ( ReflectionMethod $original, BetterReflection\Reflection\ReflectionMethod $stubbed )
assertSameParameterAttributes ( ReflectionParameter $original, ReflectionParameter $stubbed )
getMockReflector ( ) : BetterReflection\Reflector\Reflector | PHPUnit_Framework_MockObject_MockObject

Method Details

internalSymbolsProvider() public method

public internalSymbolsProvider ( ) : string[]
return string[] internal symbols

stubbedClassesProvider() public method

public stubbedClassesProvider ( ) : string[][]
return string[][]

testAllGeneratedStubsAreInSyncWithInternalReflectionClasses() public method

testCanFetchInternalLocatedSource() public method

public testCanFetchInternalLocatedSource ( string $className )
$className string

testCanReflectInternalClasses() public method

public testCanReflectInternalClasses ( string $className )
$className string

testReturnsNullForFunctions() public method

testReturnsNullForNonExistentCode() public method