BLA;
$reader = new Reader();
$reader->elementMap = [
'{http://sabredav.org/ns}blabla' => 'Sabre\\Xml\\Element\\Cdata',
];
$reader->xml($input);
$output = $reader->parse();
}
function testSerialize() {
$writer = new Writer();
$writer->namespaceMap = [
'http://sabredav.org/ns' => null
];
$writer->openMemory();
$writer->startDocument('1.0');
$writer->setIndent(true);
$writer->write([
'{http://sabredav.org/ns}root' => new Cdata(''),
]);
$output = $writer->outputMemory();
$expected = <<
]]>
XML;
$this->assertEquals($expected, $output);
}
}