1--TEST--
2DOMCharacterData::replaceWith() with itself
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7$dom = new DOMDocument;
8$dom->loadXML('<?xml version="1.0"?><container><![CDATA[Hello]]></container>');
9$cdata = $dom->documentElement->firstChild;
10$cdata->replaceWith($cdata);
11echo $dom->saveXML();
12?>
13--EXPECT--
14<?xml version="1.0"?>
15<container><![CDATA[Hello]]></container>
16