PHP Class BetterReflectionTest\NodeCompiler\CompileNodeToValueTest

Inheritance: extends PHPUnit_Framework_TestCase
Exibir arquivo Open project: roave/better-reflection

Public Methods

Method Description
nodeProvider ( ) : array
testClassConstantClassNameAliasedResolution ( )
testClassConstantClassNameNamespaceResolution ( )
testClassConstantClassNameOutOfScopeResolution ( )
testClassConstantClassNameResolution ( )
testClassConstantResolutionExternalForMethod ( )
testClassConstantResolutionSelfForMethod ( )
testClassConstantResolutionStaticForMethod ( )
testConstantValueCompiled ( )
testExceptionThrownWhenCoalesceOperatorUsed ( )
testExceptionThrownWhenInvalidNodeGiven ( )
testExceptionThrownWhenSpaceshipOperatorUsed ( )
testExceptionThrownWhenUndefinedConstUsed ( )
testVariousNodeCompilations ( string $phpCode, mixed $expectedValue )

Private Methods

Method Description
getDummyContext ( )
parseCode ( string $phpCode ) : PhpParser\Node

Method Details

nodeProvider() public method

public nodeProvider ( ) : array
return array

testClassConstantClassNameAliasedResolution() public method

testClassConstantClassNameNamespaceResolution() public method

testClassConstantClassNameOutOfScopeResolution() public method

testClassConstantClassNameResolution() public method

testClassConstantResolutionExternalForMethod() public method

testClassConstantResolutionSelfForMethod() public method

testClassConstantResolutionStaticForMethod() public method

testConstantValueCompiled() public method

testExceptionThrownWhenCoalesceOperatorUsed() public method

testExceptionThrownWhenInvalidNodeGiven() public method

testExceptionThrownWhenSpaceshipOperatorUsed() public method

testExceptionThrownWhenUndefinedConstUsed() public method

testVariousNodeCompilations() public method

public testVariousNodeCompilations ( string $phpCode, mixed $expectedValue )
$phpCode string
$expectedValue mixed