2007-07-10 16:21:26 +00:00
|
|
|
--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--
|
2009-01-07 22:37:08 +00:00
|
|
|
Warning: ReflectionClass::getConstants() expects exactly 0 parameters, 1 given in %s on line %d
|
2007-07-10 16:21:26 +00:00
|
|
|
|
2009-01-07 22:37:08 +00:00
|
|
|
Warning: ReflectionClass::getConstants() expects exactly 0 parameters, 1 given in %s on line %d
|
2007-07-10 16:21:26 +00:00
|
|
|
|
2009-01-07 22:37:08 +00:00
|
|
|
Warning: ReflectionClass::getConstants() expects exactly 0 parameters, 1 given in %s on line %d
|
2007-07-10 16:21:26 +00:00
|
|
|
|
2009-01-07 22:37:08 +00:00
|
|
|
Warning: ReflectionClass::getConstants() expects exactly 0 parameters, 2 given in %s on line %d
|