Download src/php/php-src/ext/dom/tests/DOMCharacterData_replaceWith_self.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 363 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/dom/tests/DOMCharacterData_replaceWith_self.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/dom/tests/DOMCharacterData_replaceWith_self.phpt
-
curl -L -o DOMCharacterData_replaceWith_self.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/dom/tests/DOMCharacterData_replaceWith_self.phpt
363 Bytes
| --TEST-- | |
| DOMCharacterData::replaceWith() with itself | |
| --EXTENSIONS-- | |
| dom | |
| --FILE-- | |
| $dom = new DOMDocument; | |
| $dom->loadXML('<?xml version="1.0"?><container><![CDATA[Hello]]></container>'); | |
| $cdata = $dom->documentElement->firstChild; | |
| $cdata->replaceWith($cdata); | |
| echo $dom->saveXML(); | |
| ?> | |
| --EXPECT-- | |
| <container><![CDATA[Hello]]></container> | |