Definition at line 8 of file CDataTest.php.
◆ testDeserialize()
Sabre\Xml\Element\CDataTest::testDeserialize |
( |
| ) |
|
◆ testSerialize()
Sabre\Xml\Element\CDataTest::testSerialize |
( |
| ) |
|
Definition at line 32 of file CDataTest.php.
References Sabre\VObject\$output.
34 $writer =
new Writer();
35 $writer->namespaceMap = [
36 'http://sabredav.org/ns' => null
38 $writer->openMemory();
39 $writer->startDocument(
'1.0');
40 $writer->setIndent(
true);
42 '{http://sabredav.org/ns}root' =>
new Cdata(
'<foo&bar>'),
45 $output = $writer->outputMemory();
49 <root xmlns=
"http://sabredav.org/ns"><![CDATA[<foo&bar>]]></root>
53 $this->assertEquals($expected,
$output);
The documentation for this class was generated from the following file:
- libs/composer/vendor/sabre/xml/tests/Sabre/Xml/Element/CDataTest.php