1--TEST-- 2ReflectionObject::getName() - basic function test 3--FILE-- 4<?php 5$r0 = new ReflectionObject(); 6var_dump($r0->getName()); 7 8$r1 = new ReflectionObject(new stdClass); 9var_dump($r1->getName()); 10 11class C { } 12$myInstance = new C; 13$r2 = new ReflectionObject($myInstance); 14var_dump($r2->getName()); 15 16$r3 = new ReflectionObject($r2); 17var_dump($r3->getName()); 18 19?> 20--EXPECTF-- 21 22Warning: ReflectionObject::__construct() expects exactly 1 parameter, 0 given in %s on line 2 23string(0) "" 24string(8) "stdClass" 25string(1) "C" 26string(16) "ReflectionObject" 27 28