1--TEST--
2Virtual property tests
3--EXTENSIONS--
4xmlreader
5--FILE--
6<?php
7
8$rc = new ReflectionClass(XMLReader::class);
9$prop = $rc->getProperty("nodeType");
10var_dump($prop->isVirtual());
11var_dump($prop->getSettableType());
12var_dump($prop->getHooks());
13var_dump($prop->getRawValue(new XMLReader));
14var_dump($prop->getValue(new XMLReader));
15
16$reader = XMLReader::XML("<root>hi</root>");
17var_dump(json_encode($reader));
18var_export($reader); echo "\n";
19var_dump(get_object_vars($reader));
20
21?>
22--EXPECTF--
23bool(true)
24object(ReflectionNamedType)#%d (0) {
25}
26array(0) {
27}
28int(0)
29int(0)
30string(2) "{}"
31\XMLReader::__set_state(array(
32))
33array(0) {
34}
35