--TEST--
Dom\HTMLDocument::registerNodeClass 02
--EXTENSIONS--
dom
--FILE--
registerNodeClass("Dom\\Document", "Custom");
} catch (ValueError $e) {
echo $e->getMessage(), "\n";
}
$element = $dom->appendChild($dom->createElement("foo"));
unset($dom);
var_dump(get_class($element->ownerDocument));
// Should fail
$element->ownerDocument->foo();
?>
--EXPECTF--
Dom\Document::registerNodeClass(): Argument #1 ($baseClass) must not be an abstract class
string(16) "Dom\HTMLDocument"
Fatal error: Uncaught Error: Call to undefined method Dom\HTMLDocument::foo() in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d