1--TEST--
2Testing 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();
10if ($fragment->hasChildNodes()) {
11  echo "has child nodes\n";
12} else {
13  echo "has no child nodes\n";
14}
15$fragment->appendXML('<foo>bar</foo>');
16if ($fragment->hasChildNodes()) {
17  echo "has child nodes\n";
18} else {
19  echo "has no child nodes\n";
20}
21?>
22--EXPECT--
23has no child nodes
24has child nodes
25