mirror of
https://github.com/php/php-src.git
synced 2024-10-20 07:53:58 +00:00
15851cd771
- New parameter parsing - Removed METHOD_NOTSTATIC_NUMPARAMS
25 lines
633 B
PHP
25 lines
633 B
PHP
--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
|