From: Johannes Schlüter Date: Mon, 27 Feb 2006 00:18:59 +0000 (+0000) Subject: - Fix tests X-Git-Tag: php-5.1.3RC1~64 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e056bc13c789cc29bafe8d61067d6594c655967;p=php - Fix tests --- diff --git a/ext/reflection/tests/bug26695.phpt b/ext/reflection/tests/bug26695.phpt index 859168f6ae..879546bd7d 100755 --- a/ext/reflection/tests/bug26695.phpt +++ b/ext/reflection/tests/bug26695.phpt @@ -15,7 +15,7 @@ $class = new ReflectionClass('bar'); $methods = $class->getMethods(); $params = $methods[0]->getParameters(); -$class = $params[0]->getClass(); +$class = $params[0]->getDeclaringClass(); var_dump($class->getName()); ?> diff --git a/ext/reflection/tests/bug29268.phpt b/ext/reflection/tests/bug29268.phpt index d1f74f2e2b..42dfe85027 100755 --- a/ext/reflection/tests/bug29268.phpt +++ b/ext/reflection/tests/bug29268.phpt @@ -15,7 +15,7 @@ class B{ $ref = new reflectionMethod('B','doit'); $parameters = $ref->getParameters(); foreach($parameters as $parameter){ - $class = $parameter->getClass(); + $class = $parameter->getDeclaringClass(); echo $class->name."\n"; } echo "ok\n";