diff options
author | SVN Migration <svn@php.net> | 2009-06-29 13:04:30 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2009-06-29 13:04:30 +0000 |
commit | 1cb70365152dc6cdf97333b4d6c033fdf82c6c40 (patch) | |
tree | 2a8ec674b8b29d9632bf7f2056610ac64bcf1cf6 /ext/reflection | |
parent | ba04122ae22ae24f6ff5b1fdcd6be47d78720d85 (diff) | |
download | php-git-php-5.3.0.tar.gz |
This commit was manufactured by cvs2svn to create tag 'php_5_3_0'.php-5.3.0
Diffstat (limited to 'ext/reflection')
-rw-r--r-- | ext/reflection/tests/bug46064.phpt | 13 | ||||
-rw-r--r-- | ext/reflection/tests/bug46064_2.phpt | 12 |
2 files changed, 14 insertions, 11 deletions
diff --git a/ext/reflection/tests/bug46064.phpt b/ext/reflection/tests/bug46064.phpt index 510e71b00a..89c5af37d5 100644 --- a/ext/reflection/tests/bug46064.phpt +++ b/ext/reflection/tests/bug46064.phpt @@ -37,6 +37,10 @@ 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()); } @@ -45,9 +49,8 @@ class bar extends test { new bar; ?> -===DONE=== --EXPECTF-- -object(ReflectionProperty)#%d (2) { +object(ReflectionProperty)#2 (2) { ["name"]=> string(1) "z" ["class"]=> @@ -64,13 +67,15 @@ array(1) { int(1000) --------------------------- string(30) "Property x::$zz does not exist" -object(ReflectionProperty)#%d (2) { +object(ReflectionProperty)#3 (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 da14148a7a..832d13c414 100644 --- a/ext/reflection/tests/bug46064_2.phpt +++ b/ext/reflection/tests/bug46064_2.phpt @@ -36,15 +36,14 @@ class test extends bar { new test; ?> -===DONE=== ---EXPECTF-- -object(ReflectionProperty)#%d (2) { +--EXPECT-- +object(ReflectionProperty)#3 (2) { ["name"]=> string(4) "test" ["class"]=> string(3) "foo" } -object(ReflectionProperty)#%d (2) { +object(ReflectionProperty)#5 (2) { ["name"]=> string(1) "a" ["class"]=> @@ -57,18 +56,17 @@ bool(true) bool(false) array(2) { [0]=> - &object(ReflectionProperty)#%d (2) { + &object(ReflectionProperty)#6 (2) { ["name"]=> string(1) "b" ["class"]=> string(4) "test" } [1]=> - &object(ReflectionProperty)#%d (2) { + &object(ReflectionProperty)#7 (2) { ["name"]=> string(1) "a" ["class"]=> string(4) "test" } } -===DONE===
\ No newline at end of file |