PHP Class Neos\Flow\Tests\Unit\Property\PropertyMapperTest

Inheritance: extends Neos\Flow\Tests\UnitTestCase
Afficher le fichier Open project: neos/flow-development-collection

Protected Properties

Свойство Type Description
$mockConfiguration
$mockConfigurationBuilder

Méthodes publiques

Méthode Description
convertCallsCanConvertFromWithTheFullNormalizedTargetType ( $source, $fullTargetType )
convertCallsCanConvertFromWithTheFullNormalizedTargetTypeDataProvider ( ) : array
convertDoesNotCatchSecurityExceptions ( )
convertShouldAskConfigurationBuilderForDefaultConfiguration ( )
convertSkipsPropertiesIfConfiguredTo ( )
convertSkipsUnknownPropertiesIfConfiguredTo ( )
dataProviderForFindTypeConverter ( ) : array Simple type conversion
dataProviderForObjectTypeConverters ( ) : array
doMappingReturnsSourceUnchangedIfAlreadyConverted ( )
doMappingReturnsSourceUnchangedIfAlreadyConvertedToCompositeType ( )
findEligibleConverterWithHighestPrioritySkipsConvertersWithNegativePriorities ( )
findFirstEligibleTypeConverterInObjectHierarchyShouldReturnNullIfSourceTypeIsUnknown ( )
findTypeConverterShouldReturnConverterForTargetObjectIfItExists ( $targetClass, $expectedTypeConverter, $typeConverters, $shouldFailWithException = false )
findTypeConverterShouldReturnHighestPriorityTypeConverterForSimpleType ( $source, $targetType, $typeConverters, $expectedTypeConverter )
findTypeConverterShouldReturnTypeConverterFromConfigurationIfItIsSet ( )
findTypeConverterThrowsExceptionIfAllMatchingConvertersHaveNegativePriorities ( )
invalidSourceTypes ( ) : array
setUp ( ) : void Sets up this test case
sourceTypeCanBeCorrectlyDetermined ( $source, $sourceTypes )
sourceWhichIsNoSimpleTypeOrObjectThrowsException ( $source )
validSourceTypes ( ) : array

Méthodes protégées

Méthode Description
getMockTypeConverter ( string $name = '', boolean $canConvertFrom = true, array $properties = [], string $typeOfSubObject = '' ) : Neos\Flow\Property\TypeConverterInterface | PHPUnit_Framework_MockObject_MockObject

Method Details

convertCallsCanConvertFromWithTheFullNormalizedTargetType() public méthode

public convertCallsCanConvertFromWithTheFullNormalizedTargetType ( $source, $fullTargetType )

convertCallsCanConvertFromWithTheFullNormalizedTargetTypeDataProvider() public méthode

convertDoesNotCatchSecurityExceptions() public méthode

convertShouldAskConfigurationBuilderForDefaultConfiguration() public méthode

convertSkipsPropertiesIfConfiguredTo() public méthode

convertSkipsUnknownPropertiesIfConfiguredTo() public méthode

dataProviderForFindTypeConverter() public méthode

Simple type conversion

dataProviderForObjectTypeConverters() public méthode

doMappingReturnsSourceUnchangedIfAlreadyConverted() public méthode

doMappingReturnsSourceUnchangedIfAlreadyConvertedToCompositeType() public méthode

findEligibleConverterWithHighestPrioritySkipsConvertersWithNegativePriorities() public méthode

findFirstEligibleTypeConverterInObjectHierarchyShouldReturnNullIfSourceTypeIsUnknown() public méthode

findTypeConverterShouldReturnConverterForTargetObjectIfItExists() public méthode

public findTypeConverterShouldReturnConverterForTargetObjectIfItExists ( $targetClass, $expectedTypeConverter, $typeConverters, $shouldFailWithException = false )

findTypeConverterShouldReturnHighestPriorityTypeConverterForSimpleType() public méthode

public findTypeConverterShouldReturnHighestPriorityTypeConverterForSimpleType ( $source, $targetType, $typeConverters, $expectedTypeConverter )

findTypeConverterShouldReturnTypeConverterFromConfigurationIfItIsSet() public méthode

findTypeConverterThrowsExceptionIfAllMatchingConvertersHaveNegativePriorities() public méthode

getMockTypeConverter() protected méthode

protected getMockTypeConverter ( string $name = '', boolean $canConvertFrom = true, array $properties = [], string $typeOfSubObject = '' ) : Neos\Flow\Property\TypeConverterInterface | PHPUnit_Framework_MockObject_MockObject
$name string
$canConvertFrom boolean
$properties array
$typeOfSubObject string
Résultat Neos\Flow\Property\TypeConverterInterface | PHPUnit_Framework_MockObject_MockObject

invalidSourceTypes() public méthode

public invalidSourceTypes ( ) : array
Résultat array

setUp() public méthode

Sets up this test case
public setUp ( ) : void
Résultat void

sourceTypeCanBeCorrectlyDetermined() public méthode

public sourceTypeCanBeCorrectlyDetermined ( $source, $sourceTypes )

sourceWhichIsNoSimpleTypeOrObjectThrowsException() public méthode

validSourceTypes() public méthode

public validSourceTypes ( ) : array
Résultat array

Property Details

$mockConfiguration protected_oe property

protected $mockConfiguration

$mockConfigurationBuilder protected_oe property

protected $mockConfigurationBuilder