1--TEST--
2ReflectionObject::getname() - invalid params
3--FILE--
4<?php
5class C { }
6$myInstance = new C;
7$r2 = new ReflectionObject($myInstance);
8
9$r3 = new ReflectionObject($r2);
10
11var_dump($r3->getName(null));
12var_dump($r3->getName('x','y'));
13var_dump($r3->getName(0));
14?>
15--EXPECTF--
16Warning: ReflectionClass::getName() expects exactly 0 parameters, 1 given in %s on line %d
17NULL
18
19Warning: ReflectionClass::getName() expects exactly 0 parameters, 2 given in %s on line %d
20NULL
21
22Warning: ReflectionClass::getName() expects exactly 0 parameters, 1 given in %s on line %d
23NULL
24