fixing the tests so to work with the new var_dump() (dumping private and

protected member variables)
This commit is contained in:
Andrey Hristov 2004-05-20 21:13:14 +00:00
parent 43a04beb46
commit 44de5a0e8e
3 changed files with 61 additions and 0 deletions

View File

@ -22,6 +22,17 @@ $rootNode->appendChild($rootNode);
--EXPECTF--
--- Catch exception with try/catch
object(DOMException)#%d (6) {
["message:protected"]=>
string(23) "Hierarchy Request Error"
["string:private"]=>
string(0) ""
["file:protected"]=>
string(%d) "%s/ext/dom/tests/dom003.php"
["line:protected"]=>
int(8)
["trace:private"]=>
array(0) {
}
["code"]=>
int(3)
}

View File

@ -310,16 +310,22 @@ var_dump(array_udiff_uassoc($a, $b, "comp_func_cr", "comp_func"));
array(3) {
["0.1"]=>
object(cr)#1 (2) {
["priv_member:private"]=>
int(9)
["public_member"]=>
int(9)
}
["0.5"]=>
object(cr)#2 (2) {
["priv_member:private"]=>
int(12)
["public_member"]=>
int(12)
}
[0]=>
object(cr)#3 (2) {
["priv_member:private"]=>
int(23)
["public_member"]=>
int(23)
}
@ -382,16 +388,22 @@ var_dump(array_udiff_uassoc($a, $b, array("cr", "comp_func_cr"), "comp_func"));
array(3) {
["0.1"]=>
object(cr)#1 (2) {
["priv_member:private"]=>
int(9)
["public_member"]=>
int(9)
}
["0.5"]=>
object(cr)#2 (2) {
["priv_member:private"]=>
int(12)
["public_member"]=>
int(12)
}
[0]=>
object(cr)#3 (2) {
["priv_member:private"]=>
int(23)
["public_member"]=>
int(23)
}
@ -454,26 +466,36 @@ var_dump(array_diff_assoc($a, $b));
array(5) {
["0.1"]=>
object(cr)#1 (2) {
["priv_member:private"]=>
int(9)
["public_member"]=>
int(9)
}
["0.5"]=>
object(cr)#2 (2) {
["priv_member:private"]=>
int(12)
["public_member"]=>
int(12)
}
[0]=>
object(cr)#3 (2) {
["priv_member:private"]=>
int(23)
["public_member"]=>
int(23)
}
[1]=>
object(cr)#4 (2) {
["priv_member:private"]=>
int(4)
["public_member"]=>
int(4)
}
[2]=>
object(cr)#5 (2) {
["priv_member:private"]=>
int(-15)
["public_member"]=>
int(-15)
}
@ -536,11 +558,15 @@ var_dump(array_udiff($a, $b, "comp_func_cr"));
array(2) {
["0.5"]=>
object(cr)#2 (2) {
["priv_member:private"]=>
int(12)
["public_member"]=>
int(12)
}
[0]=>
object(cr)#3 (2) {
["priv_member:private"]=>
int(23)
["public_member"]=>
int(23)
}
@ -603,16 +629,22 @@ var_dump(array_udiff_assoc($a, $b, "comp_func_cr"));
array(3) {
["0.1"]=>
object(cr)#1 (2) {
["priv_member:private"]=>
int(9)
["public_member"]=>
int(9)
}
["0.5"]=>
object(cr)#2 (2) {
["priv_member:private"]=>
int(12)
["public_member"]=>
int(12)
}
[0]=>
object(cr)#3 (2) {
["priv_member:private"]=>
int(23)
["public_member"]=>
int(23)
}

View File

@ -205,16 +205,22 @@ var_dump(array_uintersect($a, $b, "comp_func_cr"));
array(3) {
["0.1"]=>
object(cr)#1 (2) {
["priv_member:private"]=>
int(9)
["public_member"]=>
int(9)
}
[1]=>
object(cr)#4 (2) {
["priv_member:private"]=>
int(4)
["public_member"]=>
int(4)
}
[2]=>
object(cr)#5 (2) {
["priv_member:private"]=>
int(-15)
["public_member"]=>
int(-15)
}
@ -338,11 +344,15 @@ var_dump(array_uintersect_assoc($a, $b, "comp_func_cr"));
array(2) {
[1]=>
object(cr)#4 (2) {
["priv_member:private"]=>
int(4)
["public_member"]=>
int(4)
}
[2]=>
object(cr)#5 (2) {
["priv_member:private"]=>
int(-15)
["public_member"]=>
int(-15)
}
@ -466,11 +476,15 @@ var_dump(array_uintersect_uassoc($a, $b, "comp_func_cr", "comp_func"));
array(2) {
[1]=>
object(cr)#4 (2) {
["priv_member:private"]=>
int(4)
["public_member"]=>
int(4)
}
[2]=>
object(cr)#5 (2) {
["priv_member:private"]=>
int(-15)
["public_member"]=>
int(-15)
}
@ -535,11 +549,15 @@ var_dump(array_uintersect_uassoc($a, $b, array("cr", "comp_func_cr"), "comp_func
array(2) {
[1]=>
object(cr)#4 (2) {
["priv_member:private"]=>
int(4)
["public_member"]=>
int(4)
}
[2]=>
object(cr)#5 (2) {
["priv_member:private"]=>
int(-15)
["public_member"]=>
int(-15)
}