mirror of
https://github.com/php/php-src.git
synced 2024-10-22 08:47:29 +00:00
21 lines
416 B
Plaintext
21 lines
416 B
Plaintext
|
--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-->
|