class ReflectionModernConstantParserTest extends TestCase (View source)

Methods

static void
setUpBeforeClass()

No description

testItParsesNameAndValueFromTheReflectionConstant()

Replaces an assertNotNull guaranteed by the non-nullable PHPConstant return type.

testItDerivesTheIdFromTheConstantName()

Replaces an instanceof assertion the return type already guaranteed.

Details

static void setUpBeforeClass()

No description

Return Value

void

testItParsesNameAndValueFromTheReflectionConstant()

Replaces an assertNotNull guaranteed by the non-nullable PHPConstant return type.

The eval'd constant's name and value are what the parser must actually read.

testItDerivesTheIdFromTheConstantName()

Replaces an instanceof assertion the return type already guaranteed.

testItCanParseConstantNameForModernConstant()

No description

testItCanParseConstantValueForModernConstant()

No description

testItCanParseConstantIdWithRootNamespaceForModernConstant()

No description

testItCanParseConstantIdForModernConstantUnderNamespace()

No description