php-src/ext/reflection/tests/ReflectionFunction_isDisabled_basic.phpt
2014-06-08 13:50:22 -07:00

18 lines
321 B
PHP

--TEST--
ReflectionFunction::isDisabled
--CREDITS--
Stefan Koopmanschap <stefan@phpgg.nl>
TestFest PHP|Tek
--SKIPIF--
<?php
if (!extension_loaded('reflection')) print 'skip';
?>
--INI--
disable_functions=is_file
--FILE--
<?php
$rc = new ReflectionFunction('is_file');
var_dump($rc->isDisabled());
--EXPECTF--
bool(true)