mirror of
https://github.com/php/php-src.git
synced 2024-12-17 22:09:12 +08:00
20 lines
505 B
PHP
20 lines
505 B
PHP
--TEST--
|
|
ReflectionClass::IsInstantiable()
|
|
--FILE--
|
|
<?php
|
|
class privateCtorOld {
|
|
private function privateCtorOld() {}
|
|
}
|
|
$reflectionClass = new ReflectionClass("privateCtorOld");
|
|
|
|
var_dump($reflectionClass->IsInstantiable('X'));
|
|
var_dump($reflectionClass->IsInstantiable(0, null));
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: ReflectionClass::isInstantiable() expects exactly 0 parameters, 1 given in %s on line %d
|
|
NULL
|
|
|
|
Warning: ReflectionClass::isInstantiable() expects exactly 0 parameters, 2 given in %s on line %d
|
|
NULL
|