1--TEST-- 2XMLReader - var_dump 3--EXTENSIONS-- 4xmlreader 5--FILE-- 6<?php 7$reader = XMLReader::fromString("<root>hi</root>"); 8var_dump($reader->read()); 9var_dump($reader); 10?> 11--EXPECTF-- 12bool(true) 13object(XMLReader)#%d (14) { 14 ["attributeCount"]=> 15 int(0) 16 ["baseURI"]=> 17 string(%d) "%s" 18 ["depth"]=> 19 int(0) 20 ["hasAttributes"]=> 21 bool(false) 22 ["hasValue"]=> 23 bool(false) 24 ["isDefault"]=> 25 bool(false) 26 ["isEmptyElement"]=> 27 bool(false) 28 ["localName"]=> 29 string(4) "root" 30 ["name"]=> 31 string(4) "root" 32 ["namespaceURI"]=> 33 string(0) "" 34 ["nodeType"]=> 35 int(1) 36 ["prefix"]=> 37 string(0) "" 38 ["value"]=> 39 string(0) "" 40 ["xmlLang"]=> 41 string(0) "" 42} 43