\Symfony\Component\PropertyAccess\TestsPropertyAccessorTest

Summary

Methods
Properties
Constants
getPathsWithUnexpectedType()
getPathsWithMissingProperty()
getPathsWithMissingIndex()
testGetValue()
testGetValueThrowsExceptionIfPropertyNotFound()
testGetValueThrowsNoExceptionIfIndexNotFound()
testGetValueThrowsExceptionIfIndexNotFoundAndIndexExceptionsEnabled()
testGetValueThrowsExceptionIfNotArrayAccess()
testGetValueReadsMagicGet()
testGetValueReadsArrayWithMissingIndexForCustomPropertyPath()
testGetValueReadsMagicGetThatReturnsConstant()
testGetValueNotModifyObject()
testGetValueNotModifyObjectException()
testGetValueDoesNotReadMagicCallByDefault()
testGetValueReadsMagicCallIfEnabled()
testGetValueReadsMagicCallThatReturnsConstant()
testGetValueThrowsExceptionIfNotObjectOrArray()
testSetValue()
testSetValueThrowsExceptionIfPropertyNotFound()
testSetValueThrowsNoExceptionIfIndexNotFound()
testSetValueThrowsNoExceptionIfIndexNotFoundAndIndexExceptionsEnabled()
testSetValueThrowsExceptionIfNotArrayAccess()
testSetValueUpdatesMagicSet()
testSetValueThrowsExceptionIfThereAreMissingParameters()
testSetValueDoesNotUpdateMagicCallByDefault()
testSetValueUpdatesMagicCallIfEnabled()
testSetValueThrowsExceptionIfNotObjectOrArray()
testGetValueWhenArrayValueIsNull()
testIsReadable()
testIsReadableReturnsFalseIfPropertyNotFound()
testIsReadableReturnsTrueIfIndexNotFound()
testIsReadableReturnsFalseIfIndexNotFoundAndIndexExceptionsEnabled()
testIsReadableRecognizesMagicGet()
testIsReadableDoesNotRecognizeMagicCallByDefault()
testIsReadableRecognizesMagicCallIfEnabled()
testIsReadableReturnsFalseIfNotObjectOrArray()
testIsWritable()
testIsWritableReturnsFalseIfPropertyNotFound()
testIsWritableReturnsTrueIfIndexNotFound()
testIsWritableReturnsTrueIfIndexNotFoundAndIndexExceptionsEnabled()
testIsWritableRecognizesMagicSet()
testIsWritableDoesNotRecognizeMagicCallByDefault()
testIsWritableRecognizesMagicCallIfEnabled()
testIsWritableReturnsFalseIfNotObjectOrArray()
getValidPropertyPaths()
testTicket5755()
testSetValueDeepWithMagicGetter()
getReferenceChainObjectsForSetValue()
testSetValueForReferenceChainIssue()
getReferenceChainObjectsForIsWritable()
testIsWritableForReferenceChainIssue()
testThrowTypeError()
testThrowTypeErrorWithNullArgument()
testSetTypeHint()
testArrayNotBeeingOverwritten()
testThrowTypeErrorWithInterface()
testDoNotDiscardReturnTypeError()
testDoNotDiscardReturnTypeErrorWhenWriterMethodIsMisconfigured()
No public properties found
No constants found
setUp()
No protected properties found
N/A
No private methods found
$propertyAccessor
N/A

Properties

$propertyAccessor

$propertyAccessor : \Symfony\Component\PropertyAccess\PropertyAccessor

Type

PropertyAccessor

Methods

getPathsWithUnexpectedType()

getPathsWithUnexpectedType() : mixed

Returns

mixed —

getPathsWithMissingProperty()

getPathsWithMissingProperty() : mixed

Returns

mixed —

getPathsWithMissingIndex()

getPathsWithMissingIndex() : mixed

Returns

mixed —

testGetValue()

testGetValue(mixed  $objectOrArray, mixed  $path, mixed  $value) : mixed

Parameters

mixed $objectOrArray
mixed $path
mixed $value

Returns

mixed —

testGetValueThrowsExceptionIfPropertyNotFound()

testGetValueThrowsExceptionIfPropertyNotFound(mixed  $objectOrArray, mixed  $path) : mixed

Parameters

mixed $objectOrArray
mixed $path

Returns

mixed —

testGetValueThrowsNoExceptionIfIndexNotFound()

testGetValueThrowsNoExceptionIfIndexNotFound(mixed  $objectOrArray, mixed  $path) : mixed

Parameters

mixed $objectOrArray
mixed $path

Returns

mixed —

testGetValueThrowsExceptionIfIndexNotFoundAndIndexExceptionsEnabled()

testGetValueThrowsExceptionIfIndexNotFoundAndIndexExceptionsEnabled(mixed  $objectOrArray, mixed  $path) : mixed

Parameters

mixed $objectOrArray
mixed $path

Returns

mixed —

testGetValueThrowsExceptionIfNotArrayAccess()

testGetValueThrowsExceptionIfNotArrayAccess() : mixed

Returns

mixed —

testGetValueReadsMagicGet()

testGetValueReadsMagicGet() : mixed

Returns

mixed —

testGetValueReadsArrayWithMissingIndexForCustomPropertyPath()

testGetValueReadsArrayWithMissingIndexForCustomPropertyPath() : mixed

Returns

mixed —

testGetValueReadsMagicGetThatReturnsConstant()

testGetValueReadsMagicGetThatReturnsConstant() : mixed

Returns

mixed —

testGetValueNotModifyObject()

testGetValueNotModifyObject() : mixed

Returns

mixed —

testGetValueNotModifyObjectException()

testGetValueNotModifyObjectException() : mixed

Returns

mixed —

testGetValueDoesNotReadMagicCallByDefault()

testGetValueDoesNotReadMagicCallByDefault() : mixed

Returns

mixed —

testGetValueReadsMagicCallIfEnabled()

testGetValueReadsMagicCallIfEnabled() : mixed

Returns

mixed —

testGetValueReadsMagicCallThatReturnsConstant()

testGetValueReadsMagicCallThatReturnsConstant() : mixed

Returns

mixed —

testGetValueThrowsExceptionIfNotObjectOrArray()

testGetValueThrowsExceptionIfNotObjectOrArray(mixed  $objectOrArray, mixed  $path) : mixed

Parameters

mixed $objectOrArray
mixed $path

Returns

mixed —

testSetValue()

testSetValue(mixed  $objectOrArray, mixed  $path) : mixed

Parameters

mixed $objectOrArray
mixed $path

Returns

mixed —

testSetValueThrowsExceptionIfPropertyNotFound()

testSetValueThrowsExceptionIfPropertyNotFound(mixed  $objectOrArray, mixed  $path) : mixed

Parameters

mixed $objectOrArray
mixed $path

Returns

mixed —

testSetValueThrowsNoExceptionIfIndexNotFound()

testSetValueThrowsNoExceptionIfIndexNotFound(mixed  $objectOrArray, mixed  $path) : mixed

Parameters

mixed $objectOrArray
mixed $path

Returns

mixed —

testSetValueThrowsNoExceptionIfIndexNotFoundAndIndexExceptionsEnabled()

testSetValueThrowsNoExceptionIfIndexNotFoundAndIndexExceptionsEnabled(mixed  $objectOrArray, mixed  $path) : mixed

Parameters

mixed $objectOrArray
mixed $path

Returns

mixed —

testSetValueThrowsExceptionIfNotArrayAccess()

testSetValueThrowsExceptionIfNotArrayAccess() : mixed

Returns

mixed —

testSetValueUpdatesMagicSet()

testSetValueUpdatesMagicSet() : mixed

Returns

mixed —

testSetValueThrowsExceptionIfThereAreMissingParameters()

testSetValueThrowsExceptionIfThereAreMissingParameters() : mixed

Returns

mixed —

testSetValueDoesNotUpdateMagicCallByDefault()

testSetValueDoesNotUpdateMagicCallByDefault() : mixed

Returns

mixed —

testSetValueUpdatesMagicCallIfEnabled()

testSetValueUpdatesMagicCallIfEnabled() : mixed

Returns

mixed —

testSetValueThrowsExceptionIfNotObjectOrArray()

testSetValueThrowsExceptionIfNotObjectOrArray(mixed  $objectOrArray, mixed  $path) : mixed

Parameters

mixed $objectOrArray
mixed $path

Returns

mixed —

testGetValueWhenArrayValueIsNull()

testGetValueWhenArrayValueIsNull() : mixed

Returns

mixed —

testIsReadable()

testIsReadable(mixed  $objectOrArray, mixed  $path) : mixed

Parameters

mixed $objectOrArray
mixed $path

Returns

mixed —

testIsReadableReturnsFalseIfPropertyNotFound()

testIsReadableReturnsFalseIfPropertyNotFound(mixed  $objectOrArray, mixed  $path) : mixed

Parameters

mixed $objectOrArray
mixed $path

Returns

mixed —

testIsReadableReturnsTrueIfIndexNotFound()

testIsReadableReturnsTrueIfIndexNotFound(mixed  $objectOrArray, mixed  $path) : mixed

Parameters

mixed $objectOrArray
mixed $path

Returns

mixed —

testIsReadableReturnsFalseIfIndexNotFoundAndIndexExceptionsEnabled()

testIsReadableReturnsFalseIfIndexNotFoundAndIndexExceptionsEnabled(mixed  $objectOrArray, mixed  $path) : mixed

Parameters

mixed $objectOrArray
mixed $path

Returns

mixed —

testIsReadableRecognizesMagicGet()

testIsReadableRecognizesMagicGet() : mixed

Returns

mixed —

testIsReadableDoesNotRecognizeMagicCallByDefault()

testIsReadableDoesNotRecognizeMagicCallByDefault() : mixed

Returns

mixed —

testIsReadableRecognizesMagicCallIfEnabled()

testIsReadableRecognizesMagicCallIfEnabled() : mixed

Returns

mixed —

testIsReadableReturnsFalseIfNotObjectOrArray()

testIsReadableReturnsFalseIfNotObjectOrArray(mixed  $objectOrArray, mixed  $path) : mixed

Parameters

mixed $objectOrArray
mixed $path

Returns

mixed —

testIsWritable()

testIsWritable(mixed  $objectOrArray, mixed  $path) : mixed

Parameters

mixed $objectOrArray
mixed $path

Returns

mixed —

testIsWritableReturnsFalseIfPropertyNotFound()

testIsWritableReturnsFalseIfPropertyNotFound(mixed  $objectOrArray, mixed  $path) : mixed

Parameters

mixed $objectOrArray
mixed $path

Returns

mixed —

testIsWritableReturnsTrueIfIndexNotFound()

testIsWritableReturnsTrueIfIndexNotFound(mixed  $objectOrArray, mixed  $path) : mixed

Parameters

mixed $objectOrArray
mixed $path

Returns

mixed —

testIsWritableReturnsTrueIfIndexNotFoundAndIndexExceptionsEnabled()

testIsWritableReturnsTrueIfIndexNotFoundAndIndexExceptionsEnabled(mixed  $objectOrArray, mixed  $path) : mixed

Parameters

mixed $objectOrArray
mixed $path

Returns

mixed —

testIsWritableRecognizesMagicSet()

testIsWritableRecognizesMagicSet() : mixed

Returns

mixed —

testIsWritableDoesNotRecognizeMagicCallByDefault()

testIsWritableDoesNotRecognizeMagicCallByDefault() : mixed

Returns

mixed —

testIsWritableRecognizesMagicCallIfEnabled()

testIsWritableRecognizesMagicCallIfEnabled() : mixed

Returns

mixed —

testIsWritableReturnsFalseIfNotObjectOrArray()

testIsWritableReturnsFalseIfNotObjectOrArray(mixed  $objectOrArray, mixed  $path) : mixed

Parameters

mixed $objectOrArray
mixed $path

Returns

mixed —

getValidPropertyPaths()

getValidPropertyPaths() : mixed

Returns

mixed —

testTicket5755()

testTicket5755() : mixed

Returns

mixed —

testSetValueDeepWithMagicGetter()

testSetValueDeepWithMagicGetter() : mixed

Returns

mixed —

getReferenceChainObjectsForSetValue()

getReferenceChainObjectsForSetValue() : mixed

Returns

mixed —

testSetValueForReferenceChainIssue()

testSetValueForReferenceChainIssue(mixed  $object, mixed  $path, mixed  $value) : mixed

Parameters

mixed $object
mixed $path
mixed $value

Returns

mixed —

getReferenceChainObjectsForIsWritable()

getReferenceChainObjectsForIsWritable() : mixed

Returns

mixed —

testIsWritableForReferenceChainIssue()

testIsWritableForReferenceChainIssue(mixed  $object, mixed  $path, mixed  $value) : mixed

Parameters

mixed $object
mixed $path
mixed $value

Returns

mixed —

testThrowTypeError()

testThrowTypeError() : mixed

Returns

mixed —

testThrowTypeErrorWithNullArgument()

testThrowTypeErrorWithNullArgument() : mixed

Returns

mixed —

testSetTypeHint()

testSetTypeHint() : mixed

Returns

mixed —

testArrayNotBeeingOverwritten()

testArrayNotBeeingOverwritten() : mixed

Returns

mixed —

testThrowTypeErrorWithInterface()

testThrowTypeErrorWithInterface() : mixed

Returns

mixed —

testDoNotDiscardReturnTypeError()

testDoNotDiscardReturnTypeError() : mixed

Returns

mixed —

testDoNotDiscardReturnTypeErrorWhenWriterMethodIsMisconfigured()

testDoNotDiscardReturnTypeErrorWhenWriterMethodIsMisconfigured() : mixed

Returns

mixed —

setUp()

setUp() : mixed

Returns

mixed —