ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\Xml\Serializer\EnumTest Class Reference
+ Inheritance diagram for Sabre\Xml\Serializer\EnumTest:
+ Collaboration diagram for Sabre\Xml\Serializer\EnumTest:

Public Member Functions

 testSerialize ()
 

Detailed Description

Definition at line 7 of file EnumTest.php.

Member Function Documentation

◆ testSerialize()

Sabre\Xml\Serializer\EnumTest::testSerialize ( )

Definition at line 9 of file EnumTest.php.

References $xml.

9  {
10 
11  $service = new Service();
12  $service->namespaceMap['urn:test'] = null;
13 
14  $xml = $service->write('{urn:test}root', function($writer) {
15  enum($writer, [
16  '{urn:test}foo1',
17  '{urn:test}foo2',
18  ]);
19  });
20 
21  $expected = <<<XML
22 <?xml version="1.0"?>
23 <root xmlns="urn:test">
24  <foo1/>
25  <foo2/>
26 </root>
27 XML;
28 
29 
30  $this->assertXmlStringEqualsXmlString($expected, $xml);
31 
32 
33  }

The documentation for this class was generated from the following file: