‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Tests\Unit\Serializer\Typo3XmlParserTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Serializer\Typo3XmlParserTest:

Public Member Functions

 decodeReturnsStringOrArray (string $data, mixed $expected)
 
 decodeHandlesComments (array $config, array $expected)
 
 decodeIgnoresNodeAttributes ()
 
 decodeHandlesWhitespaces (string $input)
 
static decodeHandlesTagNamespaces (string $input, array $expected, array $options=[])
 
 decodeReturnsRootNodeName (string $input, string $rootNodeName)
 
 decodeCanIncludeRootNode (string $input, string $rootNodeName, array $options=[])
 
 decodeHandlesBigXmlContent (int $megabytes)
 
 decodeHandlesAttributeTypes (string $input, mixed $expected)
 
 decodeHandlesBase64Attribute ()
 
 decodeThrowsExceptionOnXmlParsingError (string $data, array $config, int $expected)
 
 encodeDecodePingPongSucceeds ()
 
 encodeDecodePingPongFailsForEmptyArray ()
 

Static Public Member Functions

static decodeReturnsStringOrArrayDataProvider ()
 
static decodeHandlesCommentsDataProvider ()
 
static string[][] decodeHandlesWhitespacesDataProvider ()
 
static array[] decodeReturnsRootNodeNameDataProvider ()
 
static decodeHandlesBigXmlContentDataProvider ()
 
static array[] decodeHandlesAttributeTypesDataProvider ()
 
static decodeThrowsExceptionOnXmlParsingErrorDataProvider ()
 

Static Public Attributes

static array< string, function decodeHandlesTagNamespacesDataProvider():array { return['inputWithNameSpaceOnRootLevel'=> ['<?xml version="1.0" encoding="utf-8" standalone="yes"?>< T3:T3FlexForms xmlns:T3="https: <data> <field> <value index="vDEF1">egon</value> <value index="vDEF2"><![CDATA[egon<CDATA:tag>olsen]]></value> </field> </data> </T3:T3FlexForms>', [ 'data' => [ 'field' => [ 'vDEF1' => 'egon', 'vDEF2' => 'egon<CDATA:tag>olsen', ], ], ], ]
 

Detailed Description

Definition at line 29 of file Typo3XmlParserTest.php.

Member Function Documentation

◆ decodeCanIncludeRootNode()

TYPO3\CMS\Core\Tests\Unit\Serializer\Typo3XmlParserTest::decodeCanIncludeRootNode ( string  $input,
string  $rootNodeName,
array  $options = [] 
)

◆ decodeHandlesAttributeTypes()

TYPO3\CMS\Core\Tests\Unit\Serializer\Typo3XmlParserTest::decodeHandlesAttributeTypes ( string  $input,
mixed  $expected 
)

Definition at line 470 of file Typo3XmlParserTest.php.

◆ decodeHandlesAttributeTypesDataProvider()

static array [] TYPO3\CMS\Core\Tests\Unit\Serializer\Typo3XmlParserTest::decodeHandlesAttributeTypesDataProvider ( )
static
Returns
‪array[]

Definition at line 388 of file Typo3XmlParserTest.php.

◆ decodeHandlesBase64Attribute()

TYPO3\CMS\Core\Tests\Unit\Serializer\Typo3XmlParserTest::decodeHandlesBase64Attribute ( )

Definition at line 478 of file Typo3XmlParserTest.php.

◆ decodeHandlesBigXmlContent()

TYPO3\CMS\Core\Tests\Unit\Serializer\Typo3XmlParserTest::decodeHandlesBigXmlContent ( int  $megabytes)

Definition at line 363 of file Typo3XmlParserTest.php.

◆ decodeHandlesBigXmlContentDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Serializer\Typo3XmlParserTest::decodeHandlesBigXmlContentDataProvider ( )
static

Definition at line 350 of file Typo3XmlParserTest.php.

◆ decodeHandlesComments()

TYPO3\CMS\Core\Tests\Unit\Serializer\Typo3XmlParserTest::decodeHandlesComments ( array  $config,
array  $expected 
)

Definition at line 78 of file Typo3XmlParserTest.php.

◆ decodeHandlesCommentsDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Serializer\Typo3XmlParserTest::decodeHandlesCommentsDataProvider ( )
static

◆ decodeHandlesTagNamespaces()

static TYPO3\CMS\Core\Tests\Unit\Serializer\Typo3XmlParserTest::decodeHandlesTagNamespaces ( string  $input,
array  $expected,
array  $options = [] 
)

◆ decodeHandlesWhitespaces()

TYPO3\CMS\Core\Tests\Unit\Serializer\Typo3XmlParserTest::decodeHandlesWhitespaces ( string  $input)
Parameters
string$input

Definition at line 159 of file Typo3XmlParserTest.php.

◆ decodeHandlesWhitespacesDataProvider()

static string [][] TYPO3\CMS\Core\Tests\Unit\Serializer\Typo3XmlParserTest::decodeHandlesWhitespacesDataProvider ( )
static
Returns
‪string[][]

Definition at line 101 of file Typo3XmlParserTest.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ decodeIgnoresNodeAttributes()

TYPO3\CMS\Core\Tests\Unit\Serializer\Typo3XmlParserTest::decodeIgnoresNodeAttributes ( )

Definition at line 89 of file Typo3XmlParserTest.php.

◆ decodeReturnsRootNodeName()

TYPO3\CMS\Core\Tests\Unit\Serializer\Typo3XmlParserTest::decodeReturnsRootNodeName ( string  $input,
string  $rootNodeName 
)

◆ decodeReturnsRootNodeNameDataProvider()

static array [] TYPO3\CMS\Core\Tests\Unit\Serializer\Typo3XmlParserTest::decodeReturnsRootNodeNameDataProvider ( )
static
Returns
‪array[]

Definition at line 272 of file Typo3XmlParserTest.php.

◆ decodeReturnsStringOrArray()

TYPO3\CMS\Core\Tests\Unit\Serializer\Typo3XmlParserTest::decodeReturnsStringOrArray ( string  $data,
mixed  $expected 
)

Definition at line 51 of file Typo3XmlParserTest.php.

◆ decodeReturnsStringOrArrayDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Serializer\Typo3XmlParserTest::decodeReturnsStringOrArrayDataProvider ( )
static

Definition at line 31 of file Typo3XmlParserTest.php.

◆ decodeThrowsExceptionOnXmlParsingError()

TYPO3\CMS\Core\Tests\Unit\Serializer\Typo3XmlParserTest::decodeThrowsExceptionOnXmlParsingError ( string  $data,
array  $config,
int  $expected 
)

Definition at line 523 of file Typo3XmlParserTest.php.

◆ decodeThrowsExceptionOnXmlParsingErrorDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Serializer\Typo3XmlParserTest::decodeThrowsExceptionOnXmlParsingErrorDataProvider ( )
static

◆ encodeDecodePingPongFailsForEmptyArray()

TYPO3\CMS\Core\Tests\Unit\Serializer\Typo3XmlParserTest::encodeDecodePingPongFailsForEmptyArray ( )

Definition at line 599 of file Typo3XmlParserTest.php.

◆ encodeDecodePingPongSucceeds()

Member Data Documentation

◆ array< string, function decodeHandlesTagNamespacesDataProvider():array { return['inputWithNameSpaceOnRootLevel'=>

TYPO3\CMS\Core\Tests\Unit\Serializer\Typo3XmlParserTest::array< string, function decodeHandlesTagNamespacesDataProvider():array { return[ 'inputWithNameSpaceOnRootLevel'=>[ '<?xml version="1.0" encoding="utf-8" standalone="yes"?>< T3:T3FlexForms xmlns:T3="https: <data> <field> <value index="vDEF1">egon</value> <value index="vDEF2"><![CDATA[egon<CDATA:tag>olsen]]></value> </field> </data> </T3:T3FlexForms>', [ 'data' => [ 'field' => [ 'vDEF1' => 'egon', 'vDEF2' => 'egon<CDATA:tag>olsen', ], ], ], ]
static
Returns
‪array<string, mixed>

Definition at line 175 of file Typo3XmlParserTest.php.