]> granicus.if.org Git - php/commitdiff
Fix ReflectionFunction::isDeprecated() test
authorNikita Popov <nikic@php.net>
Mon, 9 Mar 2015 11:27:06 +0000 (12:27 +0100)
committerNikita Popov <nikic@php.net>
Mon, 9 Mar 2015 11:27:06 +0000 (12:27 +0100)
We currently don't have deprecated functions ... so just switch
this to testing a non-deprecated function.

ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt

index 39323fd280f4a9db5ecaf83c841b20cf8a06e8c7..7b37b939e4176630c4d887ecddf775e7d3a9d3cd 100644 (file)
@@ -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)