ReflectionObject_isUserDefined_error.phpt 414 B

123456789101112131415
  1. --TEST--
  2. ReflectionObject::isUserDefined() - invalid params
  3. --FILE--
  4. <?php
  5. $r1 = new ReflectionObject(new stdClass);
  6. var_dump($r1->isUserDefined('X'));
  7. var_dump($r1->isUserDefined('X', true));
  8. ?>
  9. --EXPECTF--
  10. Warning: ReflectionClass::isUserDefined() expects exactly 0 parameters, 1 given in %s on line %d
  11. NULL
  12. Warning: ReflectionClass::isUserDefined() expects exactly 0 parameters, 2 given in %s on line %d
  13. NULL