1
0
mirror of https://github.com/php/php-src.git synced 2026-03-30 20:22:36 +02:00
Files
archived-php-src/ext/reflection/tests/ReflectionClass_isInstantiable_error.phpt
2019-01-29 13:04:20 +01:00

20 lines
502 B
PHP

--TEST--
ReflectionClass::IsInstantiable()
--FILE--
<?php
class privateCtorNew {
private function __construct() {}
}
$reflectionClass = new ReflectionClass("privateCtorNew");
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