1--TEST--
2Manually call __construct() - document fragment variation
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$fragment = new DOMDocumentFragment();
9var_dump($fragment->textContent);
10$fragment->__construct();
11var_dump($fragment->textContent);
12
13$doc = new DOMDocument();
14$doc->loadXML(<<<XML
15<?xml version="1.0"?>
16<container/>
17XML);
18@$doc->documentElement->appendChild($fragment);
19echo $doc->saveXML();
20
21$fragment->__construct();
22@$doc->documentElement->appendChild($fragment);
23echo $doc->saveXML();
24
25?>
26--EXPECT--
27string(0) ""
28string(0) ""
29<?xml version="1.0"?>
30<container/>
31<?xml version="1.0"?>
32<container/>
33