1--TEST-- 2Dom\HTMLDocument::registerNodeClass 01 3--EXTENSIONS-- 4dom 5--FILE-- 6<?php 7 8$dom = new DOMDocument(); 9$dom->registerNodeClass("Dom\\HTMLDocument", "DOMDocument"); 10 11?> 12--EXPECTF-- 13Fatal error: Uncaught TypeError: DOMDocument::registerNodeClass(): Argument #1 ($baseClass) must be a class name derived from DOMNode, Dom\HTMLDocument given in %s:%d 14Stack trace: 15#0 %s(%d): DOMDocument->registerNodeClass('Dom\\HTMLDocumen...', 'DOMDocument') 16#1 {main} 17 thrown in %s on line %d 18