summaryrefslogtreecommitdiff
path: root/ext/reflection/tests
diff options
context:
space:
mode:
authorTjerk Meesters <datibbaw@php.net>2014-09-11 19:25:42 +0800
committerTjerk Meesters <datibbaw@php.net>2014-09-11 19:25:42 +0800
commit18fa07e68f40a506191d7ecbeffedeabe3eb74df (patch)
treec18d1485ec93ff3a70c414a11b39115eb0727234 /ext/reflection/tests
parent82096dc15181fce8f3d748a4f86b35911a5d107e (diff)
downloadphp-git-18fa07e68f40a506191d7ecbeffedeabe3eb74df.tar.gz
Revert "Revert "Removing ext/ereg and dependencies""
This reverts commit 1981dd9c73ada7ea893b4636b84211f68838ba23.
Diffstat (limited to 'ext/reflection/tests')
-rw-r--r--ext/reflection/tests/ReflectionExtension_getClassNames_variation1.phpt8
-rw-r--r--ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt6
2 files changed, 7 insertions, 7 deletions
diff --git a/ext/reflection/tests/ReflectionExtension_getClassNames_variation1.phpt b/ext/reflection/tests/ReflectionExtension_getClassNames_variation1.phpt
index cd5dc0b281..91912b9220 100644
--- a/ext/reflection/tests/ReflectionExtension_getClassNames_variation1.phpt
+++ b/ext/reflection/tests/ReflectionExtension_getClassNames_variation1.phpt
@@ -2,10 +2,14 @@
ReflectionExtension::getClassNames() method on an extension with no classes
--CREDITS--
Felix De Vliegher <felix.devliegher@gmail.com>
+--SKIPIF--
+<?php
+extension_loaded('ctype') or die("skip Requires 'ctype' extension");
+?>
--FILE--
<?php
-$ereg = new ReflectionExtension('ereg');
-var_dump($ereg->getClassNames());
+$extension = new ReflectionExtension('ctype');
+var_dump($extension->getClassNames());
?>
==DONE==
--EXPECT--
diff --git a/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt b/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt
index 4148fada0c..720ac95f4f 100644
--- a/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt
+++ b/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt
@@ -3,13 +3,9 @@ ReflectionFunction::isDeprecated
--CREDITS--
Stefan Koopmanschap <stefan@phpgg.nl>
TestFest PHP|Tek
---SKIPIF--
-<?php
-if (!extension_loaded('reflection') || !defined('PHP_VERSION_ID') || PHP_VERSION_ID < 50300) print 'skip';
-?>
--FILE--
<?php
-$rc = new ReflectionFunction('ereg');
+$rc = new ReflectionFunction('magic_quotes_runtime');
var_dump($rc->isDeprecated());
--EXPECTF--
bool(true)