--TEST-- DOMComment::appendData basic functionality test --CREDITS-- Mike Sullivan #TestFest 2008 (London) --EXTENSIONS-- dom --FILE-- createElement('root'); $document->appendChild($root); $comment = $document->createElement('comment'); $root->appendChild($comment); $commentnode = $document->createComment(''); $comment->appendChild($commentnode); $commentnode->appendData('data'); echo "Comment Length (one append): " . $commentnode->length . "\n"; $commentnode->appendData('><&"'); echo "Comment Length (two appends): " . $commentnode->length . "\n"; echo "Comment Content: " . $commentnode->data . "\n"; echo "\n" . $document->saveXML(); ?> --EXPECT-- Comment Length (one append): 4 Comment Length (two appends): 8 Comment Content: data><&"