Browse Source

Fix tests

PHP-5.2.1RC1
andy wharmby 17 years ago
parent
commit
ceee572c0b
  1. 6
      ext/reflection/tests/bug46064.phpt
  2. 12
      ext/reflection/tests/bug46064_2.phpt

6
ext/reflection/tests/bug46064.phpt

@ -45,8 +45,9 @@ class bar extends test {
new bar;
?>
===DONE===
--EXPECTF--
object(ReflectionProperty)#2 (2) {
object(ReflectionProperty)#%d (2) {
["name"]=>
string(1) "z"
["class"]=>
@ -63,7 +64,7 @@ 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"]=>
@ -72,3 +73,4 @@ object(ReflectionProperty)#3 (2) {
int(2)
bool(false)
bool(true)
===DONE===

12
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===
Loading…
Cancel
Save