mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
20 lines
479 B
Plaintext
20 lines
479 B
Plaintext
|
--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: Wrong parameter count for ReflectionClass::isInstantiable() in %s on line 7
|
||
|
NULL
|
||
|
|
||
|
Warning: Wrong parameter count for ReflectionClass::isInstantiable() in %s on line 8
|
||
|
NULL
|