]> granicus.if.org Git - php/commitdiff
- Fix tests
authorJohannes Schlüter <johannes@php.net>
Mon, 27 Feb 2006 00:18:59 +0000 (00:18 +0000)
committerJohannes Schlüter <johannes@php.net>
Mon, 27 Feb 2006 00:18:59 +0000 (00:18 +0000)
ext/reflection/tests/bug26695.phpt
ext/reflection/tests/bug29268.phpt

index 859168f6ae0d6f56b1bf01b26215cc4bd90b2865..879546bd7d9b72b704d9c5a5b3b9137b6c389f9f 100755 (executable)
@@ -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());
 ?>
index d1f74f2e2b2361d00ef41a893e84c8c0d8d47daa..42dfe8502722ddcdc52b692c12669f64d89e046b 100755 (executable)
@@ -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";