PHP Class Neos\Flow\Tests\Unit\Property\TypeConverter\MediaTypeConverterTest

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

Protected Properties

Свойство Type Description
$mediaTypeConverter Neos\Flow\Property\TypeConverter\MediaTypeConverter
$mockPropertyMappingConfiguration Neos\Flow\Property\PropertyMappingConfigurationInterface | PHPUnit_Framework_MockObject_MockObject

Méthodes publiques

Méthode Description
contentTypesBodiesAndExpectedUnifiedArguments ( ) Data provider
convertExpectsJsonAsDefault ( )
convertReturnsEmptyArrayIfBodyCantBeParsed ( )
convertReturnsEmptyArrayIfGivenMediaTypeIsInvalid ( )
convertTests ( $mediaType, $requestBody, array $expectedResult )
setUp ( ) Set up this test case

Method Details

contentTypesBodiesAndExpectedUnifiedArguments() public méthode

Data provider

convertExpectsJsonAsDefault() public méthode

convertReturnsEmptyArrayIfBodyCantBeParsed() public méthode

convertReturnsEmptyArrayIfGivenMediaTypeIsInvalid() public méthode

convertTests() public méthode

public convertTests ( $mediaType, $requestBody, array $expectedResult )
$expectedResult array

setUp() public méthode

Set up this test case
public setUp ( )

Property Details

$mediaTypeConverter protected_oe property

protected MediaTypeConverter,Neos\Flow\Property\TypeConverter $mediaTypeConverter
Résultat Neos\Flow\Property\TypeConverter\MediaTypeConverter

$mockPropertyMappingConfiguration protected_oe property

protected PropertyMappingConfigurationInterface,Neos\Flow\Property|PHPUnit_Framework_MockObject_MockObject $mockPropertyMappingConfiguration
Résultat Neos\Flow\Property\PropertyMappingConfigurationInterface | PHPUnit_Framework_MockObject_MockObject