1--TEST--
2ReflectionObject::__construct - invalid arguments
3--FILE--
4<?php
5
6var_dump(new ReflectionObject());
7var_dump(new ReflectionObject('stdClass'));
8$myInstance = new stdClass;
9var_dump(new ReflectionObject($myInstance, $myInstance));
10var_dump(new ReflectionObject(0));
11var_dump(new ReflectionObject(null));
12var_dump(new ReflectionObject(array(1,2)));
13?>
14--EXPECTF--
15Warning: ReflectionObject::__construct() expects exactly 1 parameter, 0 given in %s on line 3
16object(ReflectionObject)#%d (1) {
17  ["name"]=>
18  string(0) ""
19}
20
21Warning: ReflectionObject::__construct() expects parameter 1 to be object, string given in %s on line 4
22object(ReflectionObject)#%d (1) {
23  ["name"]=>
24  string(0) ""
25}
26
27Warning: ReflectionObject::__construct() expects exactly 1 parameter, 2 given in %s on line 6
28object(ReflectionObject)#%d (1) {
29  ["name"]=>
30  string(0) ""
31}
32
33Warning: ReflectionObject::__construct() expects parameter 1 to be object, integer given in %s on line 7
34object(ReflectionObject)#%d (1) {
35  ["name"]=>
36  string(0) ""
37}
38
39Warning: ReflectionObject::__construct() expects parameter 1 to be object, null given in %s on line 8
40object(ReflectionObject)#%d (1) {
41  ["name"]=>
42  string(0) ""
43}
44
45Warning: ReflectionObject::__construct() expects parameter 1 to be object, array given in %s on line 9
46object(ReflectionObject)#%d (1) {
47  ["name"]=>
48  string(0) ""
49}
50