xref: /PHP-7.3/ext/dom/tests/bug70558.phpt (revision c87ef023)
1--TEST--
2Bug #70558 ("Couldn't fetch" error in DOMDocument::registerNodeClass())
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--FILE--
6<?php
7
8class X extends \DOMDocument {
9
10	public function __clone() {
11		var_dump($this->registerNodeClass('DOMDocument', 'X'));
12	}
13}
14
15$dom = clone (new X());
16?>
17--EXPECT--
18bool(true)
19