com php-src: Fix ReflectionFunction::isDeprecated() test: ext/reflection/tests/ReflectionFunction_isDeprecated_basic .phpt

From: Date: Mon, 09 Mar 2015 11:27:06 +0000
Subject: com php-src: Fix ReflectionFunction::isDeprecated() test: ext/reflection/tests/ReflectionFunction_isDeprecated_basic .phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85403@lists.php.net to get a copy of this message
Commit: a4262827ea23cf92c743d42399fbaca090015247 Author: Nikita Popov <nikic@php.net> Mon, 9 Mar 2015 12:27:06 +0100 Parents: 7810659cc372b17d48a7f0a799cc1509471916a1 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a4262827ea23cf92c743d42399fbaca090015247 Log: Fix ReflectionFunction::isDeprecated() test We currently don't have deprecated functions ... so just switch this to testing a non-deprecated function. Changed paths: M ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt Diff: diff --git a/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt b/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt index 39323fd..7b37b93 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)

« previous php.cvs (#85403) next »