1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 01:02:25 +01:00
Files
archived-php-src/ext/reflection/tests/ReflectionClass_isInstantiable_error.phpt

20 lines
479 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: 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