TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
ObjectAccessTest Class Reference
Inheritance diagram for ObjectAccessTest:
UnitTestCase BaseTestCase

Public Member Functions

 getPropertyReturnsExpectedValueForGetterProperty ()
 
 getPropertyReturnsExpectedValueForPublicProperty ()
 
 getPropertyReturnsExpectedValueForUnexposedPropertyIfForceDirectAccessIsTrue ()
 
 getPropertyReturnsExpectedValueForUnknownPropertyIfForceDirectAccessIsTrue ()
 
 getPropertyThrowsPropertyNotAccessibleExceptionForNotExistingPropertyIfForceDirectAccessIsTrue ()
 
 getPropertyThrowsExceptionIfPropertyDoesNotExist ()
 
 getPropertyReturnsNullIfArrayKeyDoesNotExist ()
 
 getPropertyTriesToCallABooleanGetterMethodIfItExists ()
 
 getPropertyThrowsExceptionIfThePropertyNameIsNotAString ()
 
 setPropertyThrowsExceptionIfThePropertyNameIsNotAString ()
 
 setPropertyReturnsFalseIfPropertyIsNotAccessible ()
 
 setPropertySetsValueIfPropertyIsNotAccessibleWhenForceDirectAccessIsTrue ()
 
 setPropertySetsValueIfPropertyDoesNotExistWhenForceDirectAccessIsTrue ()
 
 setPropertyCallsASetterMethodToSetThePropertyValueIfOneIsAvailable ()
 
 setPropertyWorksWithPublicProperty ()
 
 setPropertyCanDirectlySetValuesInAnArrayObjectOrArray ()
 
 getPropertyCanAccessPropertiesOfAnArrayObject ()
 
 getPropertyCanAccessPropertiesOfAnObjectStorageObject ()
 
 getPropertyCanAccessPropertiesOfAnObjectImplementingArrayAccess ()
 
 getPropertyCanAccessPropertiesOfArrayAccessWithGetterMethodWhenOffsetNotExists ()
 
 getPropertyCanAccessPropertiesOfArrayAccessWithPriorityForOffsetIfOffsetExists ()
 
 getPropertyCanAccessPropertiesOfAnArray ()
 
 getPropertyPathCanAccessPropertiesOfAnArray ()
 
 getPropertyPathCanAccessPropertiesOfAnObjectImplementingArrayAccess ()
 
 getPropertyPathCanAccessPropertiesOfAnExtbaseObjectStorageObject ()
 
 getPropertyPathCanAccessPropertiesOfAnSplObjectStorageObject ()
 
 getGettablePropertyNamesReturnsAllPropertiesWhichAreAvailable ()
 
 getSettablePropertyNamesReturnsAllPropertiesWhichAreAvailable ()
 
 getSettablePropertyNamesReturnsPropertyNamesOfStdClass ()
 
 getGettablePropertiesReturnsTheCorrectValuesForAllProperties ()
 
 getGettablePropertiesReturnsPropertiesOfStdClass ()
 
 isPropertySettableTellsIfAPropertyCanBeSet ()
 
 isPropertySettableWorksOnStdClass ()
 
 isPropertyGettableTellsIfAPropertyCanBeRetrieved ($property, $expected)
 
 propertyGettableTestValues ()
 
 isPropertyGettableWorksOnArrayAccessObjects ()
 
 isPropertyGettableWorksOnStdClass ()
 
 getPropertyPathCanRecursivelyGetPropertiesOfAnObject ()
 
 getPropertyPathReturnsNullForNonExistingPropertyPath ()
 
 getPropertyPathReturnsNullIfSubjectIsNoObject ()
 
 getPropertyPathReturnsNullIfSubjectOnPathIsNoObject ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from BaseTestCase
 getAccessibleMock ($originalClassName, $methods=[], array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ($originalClassName, array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name,...$arguments)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix= '')
 

Protected Attributes

 $dummyObject
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Test case

Definition at line 21 of file ObjectAccessTest.php.

Member Function Documentation

getGettablePropertiesReturnsPropertiesOfStdClass ( )
Test:

Definition at line 359 of file ObjectAccessTest.php.

References ObjectAccess\getGettableProperties().

getGettablePropertiesReturnsTheCorrectValuesForAllProperties ( )
Test:

Definition at line 341 of file ObjectAccessTest.php.

References ObjectAccess\getGettableProperties().

getGettablePropertyNamesReturnsAllPropertiesWhichAreAvailable ( )
Test:

Definition at line 308 of file ObjectAccessTest.php.

References ObjectAccess\getGettablePropertyNames().

getPropertyCanAccessPropertiesOfAnArray ( )
Test:

Definition at line 240 of file ObjectAccessTest.php.

References ObjectAccess\getProperty().

getPropertyCanAccessPropertiesOfAnArrayObject ( )
Test:

Definition at line 188 of file ObjectAccessTest.php.

References ObjectAccess\getProperty().

getPropertyCanAccessPropertiesOfAnObjectImplementingArrayAccess ( )
Test:

Definition at line 210 of file ObjectAccessTest.php.

References ObjectAccess\getProperty().

getPropertyCanAccessPropertiesOfAnObjectStorageObject ( )
Test:

Definition at line 198 of file ObjectAccessTest.php.

References ObjectAccess\getProperty().

getPropertyCanAccessPropertiesOfArrayAccessWithGetterMethodWhenOffsetNotExists ( )
Test:

Definition at line 220 of file ObjectAccessTest.php.

References ObjectAccess\getProperty().

getPropertyCanAccessPropertiesOfArrayAccessWithPriorityForOffsetIfOffsetExists ( )
Test:

Definition at line 230 of file ObjectAccessTest.php.

References ObjectAccess\getProperty().

getPropertyPathCanAccessPropertiesOfAnArray ( )
Test:

Definition at line 250 of file ObjectAccessTest.php.

References ObjectAccess\getPropertyPath().

getPropertyPathCanAccessPropertiesOfAnExtbaseObjectStorageObject ( )
Test:

Definition at line 270 of file ObjectAccessTest.php.

getPropertyPathCanAccessPropertiesOfAnObjectImplementingArrayAccess ( )
Test:

Definition at line 260 of file ObjectAccessTest.php.

References ObjectAccess\getPropertyPath().

getPropertyPathCanAccessPropertiesOfAnSplObjectStorageObject ( )
Test:

Definition at line 289 of file ObjectAccessTest.php.

getPropertyPathCanRecursivelyGetPropertiesOfAnObject ( )
Test:

Definition at line 448 of file ObjectAccessTest.php.

References ObjectAccess\getPropertyPath().

getPropertyPathReturnsNullForNonExistingPropertyPath ( )
Test:

Definition at line 461 of file ObjectAccessTest.php.

getPropertyPathReturnsNullIfSubjectIsNoObject ( )
Test:

Definition at line 472 of file ObjectAccessTest.php.

getPropertyPathReturnsNullIfSubjectOnPathIsNoObject ( )
Test:

Definition at line 481 of file ObjectAccessTest.php.

getPropertyReturnsExpectedValueForGetterProperty ( )
Test:

Definition at line 36 of file ObjectAccessTest.php.

References ObjectAccess\getProperty().

getPropertyReturnsExpectedValueForPublicProperty ( )
Test:

Definition at line 45 of file ObjectAccessTest.php.

References ObjectAccess\getProperty().

getPropertyReturnsExpectedValueForUnexposedPropertyIfForceDirectAccessIsTrue ( )
Test:

Definition at line 54 of file ObjectAccessTest.php.

References ObjectAccess\getProperty().

getPropertyReturnsExpectedValueForUnknownPropertyIfForceDirectAccessIsTrue ( )
Test:

Definition at line 63 of file ObjectAccessTest.php.

References ObjectAccess\getProperty().

getPropertyReturnsNullIfArrayKeyDoesNotExist ( )
Test:

Definition at line 93 of file ObjectAccessTest.php.

References ObjectAccess\getProperty().

getPropertyThrowsExceptionIfPropertyDoesNotExist ( )
Test:

Definition at line 83 of file ObjectAccessTest.php.

References ObjectAccess\getProperty().

getPropertyThrowsExceptionIfThePropertyNameIsNotAString ( )
Test:

Definition at line 111 of file ObjectAccessTest.php.

References ObjectAccess\getProperty().

getPropertyThrowsPropertyNotAccessibleExceptionForNotExistingPropertyIfForceDirectAccessIsTrue ( )
Test:

Definition at line 73 of file ObjectAccessTest.php.

References ObjectAccess\getProperty().

getPropertyTriesToCallABooleanGetterMethodIfItExists ( )
Test:

Definition at line 102 of file ObjectAccessTest.php.

References ObjectAccess\getProperty().

getSettablePropertyNamesReturnsAllPropertiesWhichAreAvailable ( )
Test:

Definition at line 318 of file ObjectAccessTest.php.

References ObjectAccess\getSettablePropertyNames().

getSettablePropertyNamesReturnsPropertyNamesOfStdClass ( )
Test:

Definition at line 328 of file ObjectAccessTest.php.

References ObjectAccess\getSettablePropertyNames().

isPropertyGettableTellsIfAPropertyCanBeRetrieved (   $property,
  $expected 
)

propertyGettableTestValues

Test:
Parameters
string$property
bool$expected

Definition at line 403 of file ObjectAccessTest.php.

isPropertyGettableWorksOnArrayAccessObjects ( )
Test:

Definition at line 426 of file ObjectAccessTest.php.

isPropertyGettableWorksOnStdClass ( )
Test:

Definition at line 437 of file ObjectAccessTest.php.

isPropertySettableTellsIfAPropertyCanBeSet ( )
Test:

Definition at line 377 of file ObjectAccessTest.php.

isPropertySettableWorksOnStdClass ( )
Test:

Definition at line 389 of file ObjectAccessTest.php.

propertyGettableTestValues ( )
Returns
array

Definition at line 411 of file ObjectAccessTest.php.

setPropertyCallsASetterMethodToSetThePropertyValueIfOneIsAvailable ( )
Test:

Definition at line 157 of file ObjectAccessTest.php.

References ObjectAccess\setProperty().

setPropertyCanDirectlySetValuesInAnArrayObjectOrArray ( )
Test:

Definition at line 175 of file ObjectAccessTest.php.

References ObjectAccess\setProperty().

setPropertyReturnsFalseIfPropertyIsNotAccessible ( )
Test:

Definition at line 131 of file ObjectAccessTest.php.

setPropertySetsValueIfPropertyDoesNotExistWhenForceDirectAccessIsTrue ( )
Test:

Definition at line 148 of file ObjectAccessTest.php.

setPropertySetsValueIfPropertyIsNotAccessibleWhenForceDirectAccessIsTrue ( )
Test:

Definition at line 139 of file ObjectAccessTest.php.

setPropertyThrowsExceptionIfThePropertyNameIsNotAString ( )
Test:

Definition at line 121 of file ObjectAccessTest.php.

References ObjectAccess\setProperty().

setPropertyWorksWithPublicProperty ( )
Test:

Definition at line 166 of file ObjectAccessTest.php.

References ObjectAccess\setProperty().

setUp ( )
protected

Definition at line 25 of file ObjectAccessTest.php.

Member Data Documentation

$dummyObject
protected

Definition at line 23 of file ObjectAccessTest.php.