1--TEST--
2ReflectionObject::__construct - basic function test
3--FILE--
4<?php
5$r1 = new ReflectionObject(new stdClass);
6var_dump($r1);
7
8class C { }
9$myInstance = new C;
10$r2 = new ReflectionObject($myInstance);
11var_dump($r2);
12
13$r3 = new ReflectionObject($r2);
14var_dump($r3);
15?>
16--EXPECTF--
17object(ReflectionObject)#%d (1) {
18  ["name"]=>
19  string(8) "stdClass"
20}
21object(ReflectionObject)#%d (1) {
22  ["name"]=>
23  string(1) "C"
24}
25object(ReflectionObject)#%d (1) {
26  ["name"]=>
27  string(16) "ReflectionObject"
28}
29