diff options
| author | Ondřej Surý <ondrej@sury.org> | 2010-01-07 13:31:53 +0100 |
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2010-01-07 13:31:53 +0100 |
| commit | 0fab6db7cac8d2be99579dd049f812a8ff98e74f (patch) | |
| tree | 91f01b0d06916c78262404096bfd466b8e95e5b5 /ext/reflection/tests/ReflectionFunction_isDisabled_basic.phpt | |
| parent | d3a8757891280dc6650ca7eead67830c794b0e7b (diff) | |
| download | php-upstream/5.3.1.tar.gz | |
Imported Upstream version 5.3.1upstream/5.3.1
Diffstat (limited to 'ext/reflection/tests/ReflectionFunction_isDisabled_basic.phpt')
| -rw-r--r-- | ext/reflection/tests/ReflectionFunction_isDisabled_basic.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/reflection/tests/ReflectionFunction_isDisabled_basic.phpt b/ext/reflection/tests/ReflectionFunction_isDisabled_basic.phpt new file mode 100644 index 000000000..c71b96b8e --- /dev/null +++ b/ext/reflection/tests/ReflectionFunction_isDisabled_basic.phpt @@ -0,0 +1,17 @@ +--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'); +echo var_dump($rc->isDisabled()); +--EXPECTF-- +bool(true) |
