summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2015-03-09 12:27:06 +0100
committerNikita Popov <nikic@php.net>2015-03-09 12:27:06 +0100
commita4262827ea23cf92c743d42399fbaca090015247 (patch)
treeb9d89aff5d264b1527a334e82efc0b0e6a9ec83b
parent7810659cc372b17d48a7f0a799cc1509471916a1 (diff)
downloadphp-git-a4262827ea23cf92c743d42399fbaca090015247.tar.gz
Fix ReflectionFunction::isDeprecated() test
We currently don't have deprecated functions ... so just switch this to testing a non-deprecated function.
-rw-r--r--ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt11
1 files changed, 3 insertions, 8 deletions
diff --git a/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt b/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt
index 39323fd280..7b37b939e4 100644
--- a/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt
+++ b/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt
@@ -3,15 +3,10 @@ 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('mcrypt_ecb');
+// We currently don't have any deprecated functions :/
+$rc = new ReflectionFunction('var_dump');
var_dump($rc->isDeprecated());
--EXPECTF--
-bool(true)
+bool(false)