class StubPropertyParserTest extends TestCase (View source)

Methods

void
setUp()

No description

testItReturnsCorrectInstance()

No description

testItCanParsePropertyName()

No description

testItCanParseStaticModifier()

No description

testItCanParseTypeHint()

No description

testItParsesHasDefaultValueMatchingReflectionSemantics(string $propertyName, bool $expected)

Mirrors ReflectionProperty::hasDefaultValue(): an untyped property always has a default (implicit null) even with no initializer, a typed one only when initialized.

static array
hasDefaultValueProvider()

No description

testItEvaluatesDefaultValues(string $propertyName, mixed $expected)

No description

static array
defaultValueProvider()

No description

Details

protected void setUp()

No description

Return Value

void

testItReturnsCorrectInstance()

No description

testItCanParsePropertyName()

No description

testItCanParsePublicVisibility()

No description

testItCanParseProtectedVisibility()

No description

testItCanParsePrivateVisibility()

No description

testItCanParseStaticModifier()

No description

testItParsesNonStaticByDefault()

No description

testItCanParseReadonlyModifier()

No description

testItParsesNonReadonlyByDefault()

No description

testItCanParseTypeHint()

No description

testItParsesPropertyWithoutType()

No description

testItCanParseStaticReadonlyProperty()

No description

testItParsesAllPropertiesFromClass()

No description

testItParsesVisibilityCorrectly()

No description

testItCanParseLanguageLevelTypeAware()

No description

testPropertyWithoutLanguageLevelTypeAware()

No description

testLanguageLevelTypeAwareWithMultipleVersions()

No description

testItParsesHasDefaultValueMatchingReflectionSemantics(string $propertyName, bool $expected)

Mirrors ReflectionProperty::hasDefaultValue(): an untyped property always has a default (implicit null) even with no initializer, a typed one only when initialized.

Parameters

string $propertyName
bool $expected

static array hasDefaultValueProvider()

No description

Return Value

array

testItEvaluatesDefaultValues(string $propertyName, mixed $expected)

No description

Parameters

string $propertyName
mixed $expected

static array defaultValueProvider()

No description

Return Value

array

testItEvaluatesArrayDefaultValue()

No description

testTypedUninitializedPropertyHasNullValueAndNoDefault()

No description