ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
AclPrincipalPropSetReportTest.php
Go to the documentation of this file.
1 <?php
2 
4 
6 
7  protected $elementMap = [
8 
9  '{DAV:}acl-principal-prop-set' => 'Sabre\DAVACL\Xml\Request\AclPrincipalPropSetReport',
10 
11  ];
12 
13  function testDeserialize() {
14 
15  $xml = <<<XML
16 <?xml version="1.0" encoding="utf-8" ?>
17 <D:acl-principal-prop-set xmlns:D="DAV:">
18  <D:prop>
19  <D:displayname/>
20  </D:prop>
21 </D:acl-principal-prop-set>
22 XML;
23 
24  $result = $this->parse($xml);
25 
26  $this->assertEquals(['{DAV:}displayname'], $result['value']->properties);
27 
28  }
29 
30 }
$result
parse($xml, array $elementMap=[])
Definition: XmlTest.php:26