xref: /PHP-8.1/ext/dom/tests/bug73907.phpt (revision bd9f4fa6)
1--TEST--
2Bug #73907 nextSibling property not included in var_dump of DOMNode
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7$xmlString = '<?xml version="1.0" encoding="utf-8" ?>
8<root>
9</root>';
10
11$doc = new DOMDocument();
12$doc->loadXML($xmlString);
13$attr = $doc->documentElement;
14
15var_dump($attr);
16?>
17--EXPECTF--
18object(DOMElement)#%d (%d) {%A
19  ["nextSibling"]=>
20  NULL
21%A}
22