Download src/php/php-src/ext/dom/tests/DOMComment_appendData_basic.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 387 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/dom/tests/DOMComment_appendData_basic.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/dom/tests/DOMComment_appendData_basic.phpt
-
curl -L -o DOMComment_appendData_basic.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/dom/tests/DOMComment_appendData_basic.phpt
387 Bytes
| --TEST-- | |
| Test adding data to a DOMComment | |
| --CREDITS-- | |
| Andrew Larssen <al@larssen.org> | |
| London TestFest 2008 | |
| --EXTENSIONS-- | |
| dom | |
| --FILE-- | |
| $dom = new DomDocument(); | |
| $comment = $dom->createComment('test-comment'); | |
| $comment->appendData('-more-data'); | |
| $dom->appendChild($comment); | |
| $dom->saveXML(); | |
| echo $dom->saveXML(); | |
| --EXPECT-- | |
| xml version="1.0" | |
| <!--test-comment-more-data--> | |