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

Public Member Functions

 constructingArgumentWithoutNameThrowsException ()
 
 constructingArgumentWithInvalidNameThrowsException ()
 
 passingDataTypeToConstructorReallySetsTheDataType ()
 
 setShortNameProvidesFluentInterface ()
 
 invalidShortNames ()
 
 shortNameShouldThrowExceptionIfInvalid ($invalidShortName)
 
 shortNameCanBeRetrievedAgain ()
 
 setRequiredShouldProvideFluentInterfaceAndReallySetRequiredState ()
 
 setDefaultValueShouldProvideFluentInterfaceAndReallySetDefaultValue ()
 
 setValidatorShouldProvideFluentInterfaceAndReallySetValidator ()
 
 setValueProvidesFluentInterface ()
 
 setValueUsesNullAsIs ()
 
 setValueUsesMatchingInstanceAsIs ()
 
 setValueShouldCallPropertyMapperCorrectlyAndStoreResultInValue ()
 
 setValueShouldBeFluentInterface ()
 
 setValueShouldSetValidationErrorsIfValidatorIsSetAndValidationFailed ()
 
 defaultPropertyMappingConfigurationDoesNotAllowCreationOrModificationOfObjects ()
 

Protected Member Functions

 setUp ()
 
 setupPropertyMapperAndSetValue ()
 
- 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

 $simpleValueArgument
 
 $objectArgument
 
 $mockPropertyMapper
 
 $mockConfigurationBuilder
 
 $mockConfiguration
 
- 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 27 of file ArgumentTest.php.

Member Function Documentation

constructingArgumentWithInvalidNameThrowsException ( )
Test:

Definition at line 73 of file ArgumentTest.php.

constructingArgumentWithoutNameThrowsException ( )
Test:

Definition at line 63 of file ArgumentTest.php.

defaultPropertyMappingConfigurationDoesNotAllowCreationOrModificationOfObjects ( )
Test:

Definition at line 240 of file ArgumentTest.php.

invalidShortNames ( )
Returns
array

Definition at line 101 of file ArgumentTest.php.

passingDataTypeToConstructorReallySetsTheDataType ( )
Test:

Definition at line 83 of file ArgumentTest.php.

setDefaultValueShouldProvideFluentInterfaceAndReallySetDefaultValue ( )
Test:

Definition at line 144 of file ArgumentTest.php.

setRequiredShouldProvideFluentInterfaceAndReallySetRequiredState ( )
Test:

Definition at line 134 of file ArgumentTest.php.

setShortNameProvidesFluentInterface ( )
Test:

Definition at line 92 of file ArgumentTest.php.

setUp ( )
protected

Definition at line 47 of file ArgumentTest.php.

References BaseTestCase\getAccessibleMock().

setValidatorShouldProvideFluentInterfaceAndReallySetValidator ( )
Test:

Definition at line 154 of file ArgumentTest.php.

setValueProvidesFluentInterface ( )
Test:

Definition at line 165 of file ArgumentTest.php.

setValueShouldBeFluentInterface ( )
setValueShouldCallPropertyMapperCorrectlyAndStoreResultInValue ( )
setValueShouldSetValidationErrorsIfValidatorIsSetAndValidationFailed ( )
setValueUsesMatchingInstanceAsIs ( )
Test:

Definition at line 185 of file ArgumentTest.php.

setValueUsesNullAsIs ( )
Test:

Definition at line 174 of file ArgumentTest.php.

References BaseTestCase\getAccessibleMock().

shortNameCanBeRetrievedAgain ( )
Test:

Definition at line 125 of file ArgumentTest.php.

shortNameShouldThrowExceptionIfInvalid (   $invalidShortName)
Test:
invalidShortNames
Parameters
string$invalidShortName

Definition at line 115 of file ArgumentTest.php.

Member Data Documentation

$mockConfiguration
protected

Definition at line 43 of file ArgumentTest.php.

$mockConfigurationBuilder
protected

Definition at line 41 of file ArgumentTest.php.

$mockPropertyMapper
protected

Definition at line 39 of file ArgumentTest.php.

$objectArgument
protected

Definition at line 37 of file ArgumentTest.php.

$simpleValueArgument
protected

Definition at line 32 of file ArgumentTest.php.