From: Marcus Boerger Date: Sat, 17 Jan 2004 17:33:10 +0000 (+0000) Subject: No external xml files X-Git-Tag: php_ibase_before_split~155 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c28af3a66097fcd61406827468ae798a7f7d43ad;p=php No external xml files --- diff --git a/ext/simplexml/tests/005.phpt b/ext/simplexml/tests/005.phpt index 5ca0cc01b1..237a5d2616 100755 --- a/ext/simplexml/tests/005.phpt +++ b/ext/simplexml/tests/005.phpt @@ -5,7 +5,26 @@ SimpleXML and text data --FILE-- + + + Plain text. + + + + Here we have some text data. + + And here some more. + + Wow once again. + + + + + +EOF +); var_dump(trim($sxe->elem1->elem2)); var_dump(trim($sxe->elem1->elem2->elem3)); diff --git a/ext/simplexml/tests/006.phpt b/ext/simplexml/tests/006.phpt index d17f0429c2..01ee3f45dd 100755 --- a/ext/simplexml/tests/006.phpt +++ b/ext/simplexml/tests/006.phpt @@ -5,7 +5,33 @@ SimpleXML and foreach --FILE-- + + + Plain text. + + Bla bla 1. + + + Here we have some text data. + + And here some more. + + Wow once again. + + + + + + Bla bla 2. + + Foo Bar + + + +EOF +); foreach($sxe as $name => $data) { var_dump($name); diff --git a/ext/simplexml/tests/009.phpt b/ext/simplexml/tests/009.phpt index 6c0a543a8e..d4543f483e 100755 --- a/ext/simplexml/tests/009.phpt +++ b/ext/simplexml/tests/009.phpt @@ -4,8 +4,31 @@ SimpleXML and foreach --FILE-- $val) { +$sxe = simplexml_load_string(<< + + + Plain text. + + Bla bla 1. + + + Here we have some text data. + + And here some more. + + Wow once again. + + + + + + Bla bla 2. + + +EOF +); +foreach($sxe->children() as $name=>$val) { var_dump($name); var_dump(get_class($val)); var_dump(trim((string)$val));