mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
23 lines
604 B
PHP
23 lines
604 B
PHP
--TEST--
|
|
ReflectionObject::IsInstantiable() - invalid params
|
|
--FILE--
|
|
<?php
|
|
class privateCtorOld {
|
|
private function privateCtorOld() {}
|
|
public static function reflectionObjectFactory() {
|
|
return new ReflectionObject(new self);
|
|
}
|
|
}
|
|
$reflectionObject = privateCtorOld::reflectionObjectFactory();
|
|
|
|
var_dump($reflectionObject->IsInstantiable('X'));
|
|
var_dump($reflectionObject->IsInstantiable(0, null));
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Wrong parameter count for ReflectionClass::isInstantiable() in %s on line 10
|
|
NULL
|
|
|
|
Warning: Wrong parameter count for ReflectionClass::isInstantiable() in %s on line 11
|
|
NULL
|