1--TEST-- 2Text coalesce bug when appending fragment with text nodes 3--EXTENSIONS-- 4dom 5--FILE-- 6<?php 7$document = new DOMDocument(); 8$document->loadXML('<root/>'); 9 10$sut = $document->createDocumentFragment(); 11for($i = 0; $i < 10; $i++) { 12 $textNode = $document->createTextNode("Node$i"); 13 $sut->append($textNode); 14} 15 16$document->documentElement->append($sut); 17echo $document->saveXML(); 18?> 19--EXPECT-- 20<?xml version="1.0"?> 21<root>Node0Node1Node2Node3Node4Node5Node6Node7Node8Node9</root> 22