Definition at line 7 of file RepeatingElementsTest.php.
◆ testSerialize()
Sabre\Xml\Serializer\RepeatingElementsTest::testSerialize |
( |
| ) |
|
Definition at line 9 of file RepeatingElementsTest.php.
References $xml, and Sabre\Xml\Serializer\repeatingElements().
11 $service =
new Service();
12 $service->namespaceMap[
'urn:test'] = null;
13 $xml = $service->write(
'{urn:test}collection',
function($writer) {
22 <collection xmlns=
"urn:test">
29 $this->assertXmlStringEqualsXmlString($expected,
$xml);
repeatingElements(Writer $writer, array $items, $childElementName)
This serializer helps you serialize xml structures that look like this:
The documentation for this class was generated from the following file: