Annotation of embedaddon/php/ext/dom/tests/DOMComment_appendData_basic.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test adding data to a DOMComment
! 3: --CREDITS--
! 4: Andrew Larssen <al@larssen.org>
! 5: London TestFest 2008
! 6: --SKIPIF--
! 7: <?php require_once('skipif.inc'); ?>
! 8: --FILE--
! 9: <?php
! 10:
! 11: $dom = new DomDocument();
! 12: $comment = $dom->createComment('test-comment');
! 13: $comment->appendData('-more-data');
! 14: $dom->appendChild($comment);
! 15: $dom->saveXML();
! 16: echo $dom->saveXML();
! 17:
! 18: ?>
! 19: --EXPECTF--
! 20: <?xml version="1.0"?>
! 21: <!--test-comment-more-data-->
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>