public function XmlEncoderTest::testDecodeCdataWrapping in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Tests/Encoder/XmlEncoderTest.php \Symfony\Component\Serializer\Tests\Encoder\XmlEncoderTest::testDecodeCdataWrapping()
File
- vendor/
symfony/ serializer/ Tests/ Encoder/ XmlEncoderTest.php, line 259
Class
Namespace
Symfony\Component\Serializer\Tests\EncoderCode
public function testDecodeCdataWrapping() {
$expected = array(
'firstname' => 'Paul <or Me>',
);
$xml = '<?xml version="1.0"?>' . "\n" . '<response><firstname><![CDATA[Paul <or Me>]]></firstname></response>' . "\n";
$this
->assertEquals($expected, $this->encoder
->decode($xml, 'xml'));
}