mirror of
https://github.com/php/php-src.git
synced 2024-12-12 03:15:29 +08:00
Update tests
This commit is contained in:
parent
bc2521b662
commit
66ed0a49fa
@ -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"
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
|
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user