Update tests

This commit is contained in:
Marcus Boerger 2004-01-22 21:47:54 +00:00
parent bc2521b662
commit 66ed0a49fa
4 changed files with 16 additions and 19 deletions

View File

@ -66,20 +66,20 @@ object(simplexml_element)#%d (2) {
}
}
===Array===
object(simplexml_element)#2 (1) {
object(simplexml_element)#%d (1) {
[0]=>
string(5) "elem1"
}
object(simplexml_element)#6 (1) {
object(simplexml_element)#%d (1) {
[0]=>
string(5) "first"
}
===Set===
object(simplexml_element)#6 (1) {
object(simplexml_element)#%d (1) {
[0]=>
string(8) "Changed1"
}
object(simplexml_element)#5 (1) {
object(simplexml_element)#%d (1) {
[0]=>
string(2) "12"
}

View File

@ -36,20 +36,20 @@ var_dump($people->person[0]['name']);
var_dump($people->person[1]['name']);
?>
===DONE===
--EXPECT--
object(simplexml_element)#4 (1) {
--EXPECTF--
object(simplexml_element)#%d (1) {
[0]=>
string(3) "Joe"
}
object(simplexml_element)#4 (1) {
object(simplexml_element)#%d (1) {
[0]=>
string(3) "Joe"
}
object(simplexml_element)#1 (1) {
object(simplexml_element)#%d (1) {
[0]=>
string(3) "Joe"
}
object(simplexml_element)#1 (1) {
object(simplexml_element)#%d (1) {
[0]=>
string(3) "Boe"
}

View File

@ -28,29 +28,29 @@ var_dump($people->person[0]['name']);
?>
===DONE===
--EXPECT--
object(simplexml_element)#4 (1) {
--EXPECTF--
object(simplexml_element)#%d (1) {
[0]=>
string(3) "Joe"
}
object(simplexml_element)#2 (1) {
object(simplexml_element)#%d (1) {
[0]=>
string(6) "JoeFoo"
}
object(simplexml_element)#5 (1) {
object(simplexml_element)#%d (1) {
[0]=>
string(9) "JoeFooBar"
}
---[0]---
object(simplexml_element)#3 (1) {
object(simplexml_element)#%d (1) {
[0]=>
string(3) "Joe"
}
object(simplexml_element)#2 (1) {
object(simplexml_element)#%d (1) {
[0]=>
string(6) "JoeFoo"
}
object(simplexml_element)#5 (1) {
object(simplexml_element)#%d (1) {
[0]=>
string(9) "JoeFooBar"
}

View File

@ -2,9 +2,6 @@
Bug #24392 (empty namespaces causing confusion)
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip simplexml extension is not loaded"; ?>
--POST--
--GET--
--INI--
--FILE--
<?php
$s = simplexml_load_file(dirname(__FILE__).'/bug24392.xml');