summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/reflectionClass_getConstants_error.phpt
blob: 73c407d656713f1adafbc1796e0059038f357578 (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: Wrong parameter count for ReflectionClass::getConstants() in %s on line 8

Warning: Wrong parameter count for ReflectionClass::getConstants() in %s on line 9

Warning: Wrong parameter count for ReflectionClass::getConstants() in %s on line 10

Warning: Wrong parameter count for ReflectionClass::getConstants() in %s on line 11