1--TEST-- 2ReflectionClass::IsInstantiable() 3--FILE-- 4<?php 5class privateCtorOld { 6 private function privateCtorOld() {} 7} 8$reflectionClass = new ReflectionClass("privateCtorOld"); 9 10var_dump($reflectionClass->IsInstantiable('X')); 11var_dump($reflectionClass->IsInstantiable(0, null)); 12 13?> 14--EXPECTF-- 15Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; privateCtorOld has a deprecated constructor in %s on line %d 16 17Warning: ReflectionClass::isInstantiable() expects exactly 0 parameters, 1 given in %s on line %d 18NULL 19 20Warning: ReflectionClass::isInstantiable() expects exactly 0 parameters, 2 given in %s on line %d 21NULL 22