summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionClass_getConstants_error.phpt
blob: 1784d712a40224974f210e56ea1a340cc9d4a5ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--TEST--
ReflectionClass::getConstants()
--FILE--
<?php
class X {
}

$rc = new reflectionClass('X');

//Test invalid arguments
$rc->getConstants('X');
$rc->getConstants(true);
$rc->getConstants(null);
$rc->getConstants('A', 'B');

?>
--EXPECTF--
Warning: ReflectionClass::getConstants() expects exactly 0 parameters, 1 given in %s on line %d

Warning: ReflectionClass::getConstants() expects exactly 0 parameters, 1 given in %s on line %d

Warning: ReflectionClass::getConstants() expects exactly 0 parameters, 1 given in %s on line %d

Warning: ReflectionClass::getConstants() expects exactly 0 parameters, 2 given in %s on line %d