mirror of
https://github.com/php/php-src.git
synced 2024-10-20 16:02:44 +00:00
21 lines
416 B
PHP
21 lines
416 B
PHP
--TEST--
|
|
Test adding data to a DOMComment
|
|
--CREDITS--
|
|
Andrew Larssen <al@larssen.org>
|
|
London TestFest 2008
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
$dom = new DomDocument();
|
|
$comment = $dom->createComment('test-comment');
|
|
$comment->appendData('-more-data');
|
|
$dom->appendChild($comment);
|
|
$dom->saveXML();
|
|
echo $dom->saveXML();
|
|
|
|
?>
|
|
--EXPECTF--
|
|
<?xml version="1.0"?>
|
|
<!--test-comment-more-data-->
|