'; $reader = new Reader(); $reader->elementMap = [ '{DAV:}set' => 'Sabre\\Xml\\Element\\KeyValue', ]; $reader->xml($body); $output = $reader->parse(); $this->assertEquals([ 'name' => '{DAV:}propertyupdate', 'value' => [ [ 'name' => '{DAV:}set', 'value' => [ '{DAV:}prop' => null, ], 'attributes' => [], ], [ 'name' => '{DAV:}set', 'value' => [ '{DAV:}prop' => null, ], 'attributes' => [], ], ], 'attributes' => [], ], $output); } }