1--TEST--
2ReflectionClass::getName()
3--FILE--
4<?php
5class TrickClass {
6	function __toString() {
7		//Return the name of another class
8		return "Exception";
9	}
10}
11
12$r1 = new ReflectionClass("stdClass");
13
14$myInstance = new stdClass;
15$r2 = new ReflectionClass($myInstance);
16
17$r3 = new ReflectionClass("TrickClass");
18
19var_dump($r1->getName(), $r2->getName(), $r3->getName());
20
21?>
22--EXPECTF--
23string(8) "stdClass"
24string(8) "stdClass"
25string(10) "TrickClass"
26