mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00
24 lines
583 B
PHP
24 lines
583 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: 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
|