Annotation of embedaddon/php/ext/dom/tests/DOMDocumentFragment_appendXML_hasChildNodes_basic.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Testing DOMDocumentFragment::appendXML and DOMDocumentFragment::hasChildNodes
! 3: --SKIPIF--
! 4: <?php require_once('skipif.inc'); ?>
! 5: --FILE--
! 6: <?php
! 7: $doc = new DOMDocument();
! 8:
! 9: $fragment = $doc->createDocumentFragment();
! 10: if ($fragment->hasChildNodes()) {
! 11: echo "has child nodes\n";
! 12: } else {
! 13: echo "has no child nodes\n";
! 14: }
! 15: $fragment->appendXML('<foo>bar</foo>');
! 16: if ($fragment->hasChildNodes()) {
! 17: echo "has child nodes\n";
! 18: } else {
! 19: echo "has no child nodes\n";
! 20: }
! 21: --EXPECT--
! 22: has no child nodes
! 23: has child nodes
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>