--TEST-- Document::importNode() with unsupported node type --EXTENSIONS-- dom --FILE-- importNode($dom)); // For modern documents this should throw $dom = Dom\HTMLDocument::createEmpty(); try { $dom->importNode($dom); } catch (DOMException $e) { echo $e->getMessage(), "\n"; } ?> --EXPECTF-- Warning: DOMDocument::importNode(): Cannot import: Node Type Not Supported in %s on line %d bool(false) Not Supported Error