From: andy wharmby Date: Mon, 29 Jun 2009 07:45:11 +0000 (+0000) Subject: Fix tests X-Git-Tag: php-5.3.0~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=54ba44da0a543bdce52b90dcbf7ae065dfeb3332;p=php Fix tests --- diff --git a/ext/reflection/tests/bug46064.phpt b/ext/reflection/tests/bug46064.phpt index 89c5af37d5..510e71b00a 100644 --- a/ext/reflection/tests/bug46064.phpt +++ b/ext/reflection/tests/bug46064.phpt @@ -37,10 +37,6 @@ class bar extends test { $this->foobar = 2; $this->a = 200; - $p = new reflectionproperty($this, 'a'); - $p->setAccessible(true); - var_dump($p->getValue($this), $p->isDefault(), $p->isPublic()); - $p = new reflectionproperty($this, 'foobar'); var_dump($p->getValue($this), $p->isDefault(), $p->isPublic()); } @@ -49,8 +45,9 @@ class bar extends test { new bar; ?> +===DONE=== --EXPECTF-- -object(ReflectionProperty)#2 (2) { +object(ReflectionProperty)#%d (2) { ["name"]=> string(1) "z" ["class"]=> @@ -67,15 +64,13 @@ array(1) { int(1000) --------------------------- string(30) "Property x::$zz does not exist" -object(ReflectionProperty)#3 (2) { +object(ReflectionProperty)#%d (2) { ["name"]=> string(3) "zzz" ["class"]=> string(1) "x" } -int(200) -bool(true) -bool(false) int(2) bool(false) bool(true) +===DONE=== diff --git a/ext/reflection/tests/bug46064_2.phpt b/ext/reflection/tests/bug46064_2.phpt index 832d13c414..da14148a7a 100644 --- a/ext/reflection/tests/bug46064_2.phpt +++ b/ext/reflection/tests/bug46064_2.phpt @@ -36,14 +36,15 @@ class test extends bar { new test; ?> ---EXPECT-- -object(ReflectionProperty)#3 (2) { +===DONE=== +--EXPECTF-- +object(ReflectionProperty)#%d (2) { ["name"]=> string(4) "test" ["class"]=> string(3) "foo" } -object(ReflectionProperty)#5 (2) { +object(ReflectionProperty)#%d (2) { ["name"]=> string(1) "a" ["class"]=> @@ -56,17 +57,18 @@ bool(true) bool(false) array(2) { [0]=> - &object(ReflectionProperty)#6 (2) { + &object(ReflectionProperty)#%d (2) { ["name"]=> string(1) "b" ["class"]=> string(4) "test" } [1]=> - &object(ReflectionProperty)#7 (2) { + &object(ReflectionProperty)#%d (2) { ["name"]=> string(1) "a" ["class"]=> string(4) "test" } } +===DONE=== \ No newline at end of file