summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2006-03-13 22:59:36 +0000
committerMarcus Boerger <helly@php.net>2006-03-13 22:59:36 +0000
commit9eebea0a457f4f90d0c956dc5ad6d744720b5c9d (patch)
treec4f396921d75632ce4dfacb52cff779ff400a077
parent8f09deab58fc85915f3ea62c430170c143630e00 (diff)
downloadphp-git-9eebea0a457f4f90d0c956dc5ad6d744720b5c9d.tar.gz
- Fix tests
-rwxr-xr-xext/reflection/tests/bug26695.phpt2
-rwxr-xr-xext/reflection/tests/bug29268.phpt5
2 files changed, 4 insertions, 3 deletions
diff --git a/ext/reflection/tests/bug26695.phpt b/ext/reflection/tests/bug26695.phpt
index cab661868b..2ae1e762e7 100755
--- a/ext/reflection/tests/bug26695.phpt
+++ b/ext/reflection/tests/bug26695.phpt
@@ -17,7 +17,7 @@ $class = new ReflectionClass('bar');
$methods = $class->getMethods();
$params = $methods[0]->getParameters();
-$class = $params[0]->getDeclaringClass();
+$class = $params[0]->getClass();
var_dump($class->getName());
?>
diff --git a/ext/reflection/tests/bug29268.phpt b/ext/reflection/tests/bug29268.phpt
index 376f5c1b7b..cd8f9b8ed1 100755
--- a/ext/reflection/tests/bug29268.phpt
+++ b/ext/reflection/tests/bug29268.phpt
@@ -16,8 +16,9 @@ class B{
$ref = new reflectionMethod('B','doit');
$parameters = $ref->getParameters();
-foreach($parameters as $parameter){
- $class = $parameter->getDeclaringClass();
+foreach($parameters as $parameter)
+{
+ $class = $parameter->getClass();
echo $class->name."\n";
}
echo "ok\n";