ReflectionObject_isInternal_error.phpt 399 B

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