1--TEST-- 2GH-16190 (Using reflection to call Dom\Node::__construct causes assertion failure) 3--EXTENSIONS-- 4dom 5--FILE-- 6<?php 7 8$doc = Dom\XMLDocument::createEmpty(); 9$rm = new ReflectionMethod($doc, '__construct'); 10try { 11 $rm->invoke($doc); 12} catch (Error $e) { 13 echo $e->getMessage(), "\n"; 14} 15 16?> 17--EXPECT-- 18Cannot directly construct Dom\XMLDocument, use document methods instead 19