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.

22 lines
604 B

  1. --TEST--
  2. ReflectionObject::IsInstantiable() - invalid params
  3. --FILE--
  4. <?php
  5. class privateCtorOld {
  6. private function privateCtorOld() {}
  7. public static function reflectionObjectFactory() {
  8. return new ReflectionObject(new self);
  9. }
  10. }
  11. $reflectionObject = privateCtorOld::reflectionObjectFactory();
  12. var_dump($reflectionObject->IsInstantiable('X'));
  13. var_dump($reflectionObject->IsInstantiable(0, null));
  14. ?>
  15. --EXPECTF--
  16. Warning: Wrong parameter count for ReflectionClass::isInstantiable() in %s on line 10
  17. NULL
  18. Warning: Wrong parameter count for ReflectionClass::isInstantiable() in %s on line 11
  19. NULL