diff options
author | Nikita Popov <nikic@php.net> | 2015-03-09 12:27:06 +0100 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2015-03-09 12:27:06 +0100 |
commit | a4262827ea23cf92c743d42399fbaca090015247 (patch) | |
tree | b9d89aff5d264b1527a334e82efc0b0e6a9ec83b | |
parent | 7810659cc372b17d48a7f0a799cc1509471916a1 (diff) | |
download | php-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.phpt | 11 |
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) |