1--TEST--
2ReflectionObject::getConstant() - invalid params
3--FILE--
4<?php
5class C {
6	const myConst = 1;
7}
8
9$rc = new ReflectionObject(new C);
10var_dump($rc->getConstant());
11var_dump($rc->getConstant("myConst", "myConst"));
12var_dump($rc->getConstant(null));
13var_dump($rc->getConstant(1));
14var_dump($rc->getConstant(1.5));
15var_dump($rc->getConstant(true));
16var_dump($rc->getConstant(array(1,2,3)));
17var_dump($rc->getConstant(new C));
18?>
19--EXPECTF--
20Warning: ReflectionClass::getConstant() expects exactly 1 parameter, 0 given in %s on line 7
21NULL
22
23Warning: ReflectionClass::getConstant() expects exactly 1 parameter, 2 given in %s on line 8
24NULL
25bool(false)
26bool(false)
27bool(false)
28bool(false)
29
30Warning: ReflectionClass::getConstant() expects parameter 1 to be string, array given in %s on line 13
31NULL
32
33Warning: ReflectionClass::getConstant() expects parameter 1 to be string, object given in %s on line 14
34NULL
35