class ReflectionDefineConstantParserTest extends TestCase (View source)

Methods

testItParsesNameAndValueFromTheDefinePair()

Replaces an assertNotNull that the non-nullable PHPConstant return type already guaranteed — it would have passed even if nothing were parsed out of the input.

testItDerivesTheIdFromTheConstantName()

Replaces an instanceof assertion the return type already guaranteed; the id is the part that is actually derived and could regress.

Details

testItParsesNameAndValueFromTheDefinePair()

Replaces an assertNotNull that the non-nullable PHPConstant return type already guaranteed — it would have passed even if nothing were parsed out of the input.

testItDerivesTheIdFromTheConstantName()

Replaces an instanceof assertion the return type already guaranteed; the id is the part that is actually derived and could regress.

testItCanParseStringConstantNameForDefinedConstant()

No description

testItCanParseIntConstantNameForDefinedConstant()

No description

testItCanParseStringConstantValueForDefinedConstant()

No description

testItCanParseIntConstantValueForDefinedConstant()

No description

testItCanParseFloatConstantValueForDefinedConstant()

No description

testItCanParseResourceConstantValueForDefinedConstant()

No description

testItCanParseNullConstantValueForDefinedConstant()

No description

testItCanParseConstantIdForDefinedConstant()

No description