mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
25 lines
583 B
Plaintext
25 lines
583 B
Plaintext
|
--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
|