\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()
testCacheReadAccess()
testAttributeWithSpecialChars()
testThrowTypeErrorWithInterface()
testAnonymousClassRead()
testAnonymousClassWrite()
testThrowTypeErrorInsideSetterCall()
testDoNotDiscardReturnTypeError()
testDoNotDiscardReturnTypeErrorWhenWriterMethodIsMisconfigured()
testWriteToSingularPropertyWhilePluralOneExists()
testWriteToPluralPropertyWhileSingularOneExists()
No public properties found
No constants found
setUp()
No protected properties found
N/A
generateAnonymousClass()
$propertyAccessor
N/A

Properties

$propertyAccessor

$propertyAccessor : \Symfony\Component\PropertyAccess\PropertyAccessor

Type

\Symfony\Component\PropertyAccess\PropertyAccessor

Methods

getPathsWithUnexpectedType()

getPathsWithUnexpectedType() 

getPathsWithMissingProperty()

getPathsWithMissingProperty() 

getPathsWithMissingIndex()

getPathsWithMissingIndex() 

testGetValue()

testGetValue(  $objectOrArray,   $path,   $value) 

Parameters

$objectOrArray
$path
$value

testGetValueThrowsExceptionIfPropertyNotFound()

testGetValueThrowsExceptionIfPropertyNotFound(  $objectOrArray,   $path) 

Parameters

$objectOrArray
$path

testGetValueThrowsNoExceptionIfIndexNotFound()

testGetValueThrowsNoExceptionIfIndexNotFound(  $objectOrArray,   $path) 

Parameters

$objectOrArray
$path

testGetValueThrowsExceptionIfIndexNotFoundAndIndexExceptionsEnabled()

testGetValueThrowsExceptionIfIndexNotFoundAndIndexExceptionsEnabled(  $objectOrArray,   $path) 

Parameters

$objectOrArray
$path

testGetValueThrowsExceptionIfNotArrayAccess()

testGetValueThrowsExceptionIfNotArrayAccess() 

testGetValueReadsMagicGet()

testGetValueReadsMagicGet() 

testGetValueReadsArrayWithMissingIndexForCustomPropertyPath()

testGetValueReadsArrayWithMissingIndexForCustomPropertyPath() 

testGetValueReadsMagicGetThatReturnsConstant()

testGetValueReadsMagicGetThatReturnsConstant() 

testGetValueNotModifyObject()

testGetValueNotModifyObject() 

testGetValueNotModifyObjectException()

testGetValueNotModifyObjectException() 

testGetValueDoesNotReadMagicCallByDefault()

testGetValueDoesNotReadMagicCallByDefault() 

testGetValueReadsMagicCallIfEnabled()

testGetValueReadsMagicCallIfEnabled() 

testGetValueReadsMagicCallThatReturnsConstant()

testGetValueReadsMagicCallThatReturnsConstant() 

testGetValueThrowsExceptionIfNotObjectOrArray()

testGetValueThrowsExceptionIfNotObjectOrArray(  $objectOrArray,   $path) 

Parameters

$objectOrArray
$path

testSetValue()

testSetValue(  $objectOrArray,   $path) 

Parameters

$objectOrArray
$path

testSetValueThrowsExceptionIfPropertyNotFound()

testSetValueThrowsExceptionIfPropertyNotFound(  $objectOrArray,   $path) 

Parameters

$objectOrArray
$path

testSetValueThrowsNoExceptionIfIndexNotFound()

testSetValueThrowsNoExceptionIfIndexNotFound(  $objectOrArray,   $path) 

Parameters

$objectOrArray
$path

testSetValueThrowsNoExceptionIfIndexNotFoundAndIndexExceptionsEnabled()

testSetValueThrowsNoExceptionIfIndexNotFoundAndIndexExceptionsEnabled(  $objectOrArray,   $path) 

Parameters

$objectOrArray
$path

testSetValueThrowsExceptionIfNotArrayAccess()

testSetValueThrowsExceptionIfNotArrayAccess() 

testSetValueUpdatesMagicSet()

testSetValueUpdatesMagicSet() 

testSetValueThrowsExceptionIfThereAreMissingParameters()

testSetValueThrowsExceptionIfThereAreMissingParameters() 

testSetValueDoesNotUpdateMagicCallByDefault()

testSetValueDoesNotUpdateMagicCallByDefault() 

testSetValueUpdatesMagicCallIfEnabled()

testSetValueUpdatesMagicCallIfEnabled() 

testSetValueThrowsExceptionIfNotObjectOrArray()

testSetValueThrowsExceptionIfNotObjectOrArray(  $objectOrArray,   $path) 

Parameters

$objectOrArray
$path

testGetValueWhenArrayValueIsNull()

testGetValueWhenArrayValueIsNull() 

testIsReadable()

testIsReadable(  $objectOrArray,   $path) 

Parameters

$objectOrArray
$path

testIsReadableReturnsFalseIfPropertyNotFound()

testIsReadableReturnsFalseIfPropertyNotFound(  $objectOrArray,   $path) 

Parameters

$objectOrArray
$path

testIsReadableReturnsTrueIfIndexNotFound()

testIsReadableReturnsTrueIfIndexNotFound(  $objectOrArray,   $path) 

Parameters

$objectOrArray
$path

testIsReadableReturnsFalseIfIndexNotFoundAndIndexExceptionsEnabled()

testIsReadableReturnsFalseIfIndexNotFoundAndIndexExceptionsEnabled(  $objectOrArray,   $path) 

Parameters

$objectOrArray
$path

testIsReadableRecognizesMagicGet()

testIsReadableRecognizesMagicGet() 

testIsReadableDoesNotRecognizeMagicCallByDefault()

testIsReadableDoesNotRecognizeMagicCallByDefault() 

testIsReadableRecognizesMagicCallIfEnabled()

testIsReadableRecognizesMagicCallIfEnabled() 

testIsReadableReturnsFalseIfNotObjectOrArray()

testIsReadableReturnsFalseIfNotObjectOrArray(  $objectOrArray,   $path) 

Parameters

$objectOrArray
$path

testIsWritable()

testIsWritable(  $objectOrArray,   $path) 

Parameters

$objectOrArray
$path

testIsWritableReturnsFalseIfPropertyNotFound()

testIsWritableReturnsFalseIfPropertyNotFound(  $objectOrArray,   $path) 

Parameters

$objectOrArray
$path

testIsWritableReturnsTrueIfIndexNotFound()

testIsWritableReturnsTrueIfIndexNotFound(  $objectOrArray,   $path) 

Parameters

$objectOrArray
$path

testIsWritableReturnsTrueIfIndexNotFoundAndIndexExceptionsEnabled()

testIsWritableReturnsTrueIfIndexNotFoundAndIndexExceptionsEnabled(  $objectOrArray,   $path) 

Parameters

$objectOrArray
$path

testIsWritableRecognizesMagicSet()

testIsWritableRecognizesMagicSet() 

testIsWritableDoesNotRecognizeMagicCallByDefault()

testIsWritableDoesNotRecognizeMagicCallByDefault() 

testIsWritableRecognizesMagicCallIfEnabled()

testIsWritableRecognizesMagicCallIfEnabled() 

testIsWritableReturnsFalseIfNotObjectOrArray()

testIsWritableReturnsFalseIfNotObjectOrArray(  $objectOrArray,   $path) 

Parameters

$objectOrArray
$path

getValidPropertyPaths()

getValidPropertyPaths() 

testTicket5755()

testTicket5755() 

testSetValueDeepWithMagicGetter()

testSetValueDeepWithMagicGetter() 

getReferenceChainObjectsForSetValue()

getReferenceChainObjectsForSetValue() 

testSetValueForReferenceChainIssue()

testSetValueForReferenceChainIssue(  $object,   $path,   $value) 

Parameters

$object
$path
$value

getReferenceChainObjectsForIsWritable()

getReferenceChainObjectsForIsWritable() 

testIsWritableForReferenceChainIssue()

testIsWritableForReferenceChainIssue(  $object,   $path,   $value) 

Parameters

$object
$path
$value

testThrowTypeError()

testThrowTypeError() 

testThrowTypeErrorWithNullArgument()

testThrowTypeErrorWithNullArgument() 

testSetTypeHint()

testSetTypeHint() 

testArrayNotBeeingOverwritten()

testArrayNotBeeingOverwritten() 

testCacheReadAccess()

testCacheReadAccess() 

testAttributeWithSpecialChars()

testAttributeWithSpecialChars() 

testThrowTypeErrorWithInterface()

testThrowTypeErrorWithInterface() 

testAnonymousClassRead()

testAnonymousClassRead() 

testAnonymousClassWrite()

testAnonymousClassWrite() 

testThrowTypeErrorInsideSetterCall()

testThrowTypeErrorInsideSetterCall() 

testDoNotDiscardReturnTypeError()

testDoNotDiscardReturnTypeError() 

testDoNotDiscardReturnTypeErrorWhenWriterMethodIsMisconfigured()

testDoNotDiscardReturnTypeErrorWhenWriterMethodIsMisconfigured() 

testWriteToSingularPropertyWhilePluralOneExists()

testWriteToSingularPropertyWhilePluralOneExists() 

testWriteToPluralPropertyWhileSingularOneExists()

testWriteToPluralPropertyWhileSingularOneExists() 

setUp()

setUp() 

generateAnonymousClass()

generateAnonymousClass(  $value) 

Parameters

$value