--TEST-- Testing DOMDocumentFragment::appendXML and DOMDocumentFragment::hasChildNodes --SKIPIF-- --FILE-- createDocumentFragment(); if ($fragment->hasChildNodes()) { echo "has child nodes\n"; } else { echo "has no child nodes\n"; } $fragment->appendXML('bar'); if ($fragment->hasChildNodes()) { echo "has child nodes\n"; } else { echo "has no child nodes\n"; } ?> --EXPECT-- has no child nodes has child nodes