From 9f8ba2e8a13966eb4b7832d8909ce4ddaa76af2f Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Tue, 30 Mar 2004 21:17:52 +0000 Subject: [PATCH] Fix tests --- ext/reflection/tests/bug26640.phpt | 2 +- ext/reflection/tests/invoke.phpt | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/ext/reflection/tests/bug26640.phpt b/ext/reflection/tests/bug26640.phpt index af7b0d032e..2cbd0d23d4 100755 --- a/ext/reflection/tests/bug26640.phpt +++ b/ext/reflection/tests/bug26640.phpt @@ -14,7 +14,7 @@ function __autoload($c) } } -$a = new Reflection_Class('autoload_class'); +$a = new ReflectionClass('autoload_class'); if (is_object($a)) { echo "OK\n"; diff --git a/ext/reflection/tests/invoke.phpt b/ext/reflection/tests/invoke.phpt index 5e28016eca..a79b0e0b06 100755 --- a/ext/reflection/tests/invoke.phpt +++ b/ext/reflection/tests/invoke.phpt @@ -3,8 +3,6 @@ invoke with non object or null value --FILE-- getMethod("a"); try { $m->invoke(null); -} catch (reflection_exception $E) { +} catch (ReflectionException $E) { echo $E->getMessage()."\n"; } try { $m->invoke($b); -} catch (reflection_exception $E) { +} catch (ReflectionException $E) { echo $E->getMessage()."\n"; } $b = new a(); try { $m->invoke($b); -} catch (reflection_exception $E) { +} catch (ReflectionException $E) { echo $E->getMessage()."\n"; } -- 2.50.1