summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt8
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt b/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt
index 720ac95f4f..39323fd280 100644
--- a/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt
+++ b/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt
@@ -3,9 +3,15 @@ ReflectionFunction::isDeprecated
--CREDITS--
Stefan Koopmanschap <stefan@phpgg.nl>
TestFest PHP|Tek
+--SKIPIF--
+<?php
+
+if (!extension_loaded('mcrypt')) echo "skip no deprecated functions available";
+
+?>
--FILE--
<?php
-$rc = new ReflectionFunction('magic_quotes_runtime');
+$rc = new ReflectionFunction('mcrypt_ecb');
var_dump($rc->isDeprecated());
--EXPECTF--
bool(true)