1--TEST-- 2DOMComment::__construct() with constructor called twice. 3--CREDITS-- 4Eric Lee Stewart <ericleestewart@gmail.com> 5# TestFest Atlanta 2009-05-25 6--SKIPIF-- 7<?php require_once('skipif.inc'); ?> 8--FILE-- 9<?php 10$dom = new DOMDocument('1.0', 'UTF-8'); 11$element = $dom->appendChild(new DOMElement('root')); 12$comment = new DOMComment("This is the first comment."); 13$comment->__construct("This is the second comment."); 14$comment = $element->appendChild($comment); 15print $dom->saveXML(); 16?> 17--EXPECT-- 18<?xml version="1.0" encoding="UTF-8"?> 19<root><!--This is the second comment.--></root> 20