You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
505 B

  1. --TEST--
  2. ReflectionClass::IsInstantiable()
  3. --FILE--
  4. <?php
  5. class privateCtorOld {
  6. private function privateCtorOld() {}
  7. }
  8. $reflectionClass = new ReflectionClass("privateCtorOld");
  9. var_dump($reflectionClass->IsInstantiable('X'));
  10. var_dump($reflectionClass->IsInstantiable(0, null));
  11. ?>
  12. --EXPECTF--
  13. Warning: ReflectionClass::isInstantiable() expects exactly 0 parameters, 1 given in %s on line %d
  14. NULL
  15. Warning: ReflectionClass::isInstantiable() expects exactly 0 parameters, 2 given in %s on line %d
  16. NULL