summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/reflectionObject_getConstants_error.phpt
blob: 81ec9ed2ed26dbbc2bb2a49ed9a2e787923f626c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
ReflectionObject::getConstants() - invalid params
--FILE--
<?php
class X {
}

$rc = new ReflectionObject(new X);

$rc->getConstants('X');
$rc->getConstants(true);

?>
--EXPECTF--
Warning: Wrong parameter count for ReflectionClass::getConstants() in %s on line 7

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