1--TEST--
2ReflectionClass::getConstants()
3--FILE--
4<?php
5class X {
6}
7
8$rc = new reflectionClass('X');
9
10//Test invalid arguments
11$rc->getConstants('X');
12$rc->getConstants(true);
13$rc->getConstants(null);
14$rc->getConstants('A', 'B');
15
16?>
17--EXPECTF--
18Warning: ReflectionClass::getConstants() expects exactly 0 parameters, 1 given in %s on line %d
19
20Warning: ReflectionClass::getConstants() expects exactly 0 parameters, 1 given in %s on line %d
21
22Warning: ReflectionClass::getConstants() expects exactly 0 parameters, 1 given in %s on line %d
23
24Warning: ReflectionClass::getConstants() expects exactly 0 parameters, 2 given in %s on line %d
25