mirror of
https://github.com/php/php-src.git
synced 2025-01-10 13:03:54 +08:00
24 lines
573 B
PHP
24 lines
573 B
PHP
--TEST--
|
|
ReflectionObject::getname() - invalid params
|
|
--FILE--
|
|
<?php
|
|
class C { }
|
|
$myInstance = new C;
|
|
$r2 = new ReflectionObject($myInstance);
|
|
|
|
$r3 = new ReflectionObject($r2);
|
|
|
|
var_dump($r3->getName(null));
|
|
var_dump($r3->getName('x','y'));
|
|
var_dump($r3->getName(0));
|
|
?>
|
|
--EXPECTF--
|
|
Warning: ReflectionClass::getName() expects exactly 0 parameters, 1 given in %s on line %d
|
|
NULL
|
|
|
|
Warning: ReflectionClass::getName() expects exactly 0 parameters, 2 given in %s on line %d
|
|
NULL
|
|
|
|
Warning: ReflectionClass::getName() expects exactly 0 parameters, 1 given in %s on line %d
|
|
NULL
|