Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
Use multiple nodes with different names as children of <root>.
3
 
4
--FILE--
5
<?php
6
require_once '../ArrayToDOMDocument.php';
7
 
8
$data = array(
9
	'configuration' => array(
10
		'workflowExecutionRetentionPeriodInDays' => 1
11
	),
12
	'domainInfo' => array(
13
		'name' => 'aws-php-sdk-domain',
14
		'status' => 'REGISTERED'
15
	)
16
);
17
 
18
echo Array2DOM::arrayToXMLString($data);
19
?>
20
 
21
--EXPECT--
22
<?xml version="1.0"?>
23
<root>
24
  <configuration>
25
    <workflowExecutionRetentionPeriodInDays><![CDATA[1]]></workflowExecutionRetentionPeriodInDays>
26
  </configuration>
27
  <domainInfo>
28
    <name><![CDATA[aws-php-sdk-domain]]></name>
29
    <status><![CDATA[REGISTERED]]></status>
30
  </domainInfo>
31
</root>