ReflectionFunction_isDisabled_basic.phpt 321 B

1234567891011121314151617
  1. --TEST--
  2. ReflectionFunction::isDisabled
  3. --CREDITS--
  4. Stefan Koopmanschap <stefan@phpgg.nl>
  5. TestFest PHP|Tek
  6. --SKIPIF--
  7. <?php
  8. if (!extension_loaded('reflection')) print 'skip';
  9. ?>
  10. --INI--
  11. disable_functions=is_file
  12. --FILE--
  13. <?php
  14. $rc = new ReflectionFunction('is_file');
  15. var_dump($rc->isDisabled());
  16. --EXPECTF--
  17. bool(true)