1--TEST--
2ReflectionObject::getName() - basic function test
3--FILE--
4<?php
5
6$r1 = new ReflectionObject(new stdClass);
7var_dump($r1->getName());
8
9class C { }
10$myInstance = new C;
11$r2 = new ReflectionObject($myInstance);
12var_dump($r2->getName());
13
14$r3 = new ReflectionObject($r2);
15var_dump($r3->getName());
16
17?>
18--EXPECT--
19string(8) "stdClass"
20string(1) "C"
21string(16) "ReflectionObject"
22