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-- 21Warning: ReflectionObject::__construct() expects exactly 1 parameter, 0 given in %s on line 2 22string(0) "" 23string(8) "stdClass" 24string(1) "C" 25string(16) "ReflectionObject" 26