diff --git a/ext/reflection/tests/bug26640.phpt b/ext/reflection/tests/bug26640.phpt index af7b0d032e6..2cbd0d23d41 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 5e28016eca5..a79b0e0b061 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"; }