diff options
author | Marcus Boerger <helly@php.net> | 2004-01-14 22:07:28 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2004-01-14 22:07:28 +0000 |
commit | 6915f5a2f51210b40d71987742611ea115f8042b (patch) | |
tree | ff0bd92facfe87f3d20a002ed678b22ec3d27992 /ext/simplexml/tests/010.phpt | |
parent | b3853af0b7509d135b84e22e8caa3141ba5d9422 (diff) | |
download | php-git-6915f5a2f51210b40d71987742611ea115f8042b.tar.gz |
This is no longer usefull in any way.
Diffstat (limited to 'ext/simplexml/tests/010.phpt')
-rw-r--r-- | ext/simplexml/tests/010.phpt | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/ext/simplexml/tests/010.phpt b/ext/simplexml/tests/010.phpt deleted file mode 100644 index 01ad49d064..0000000000 --- a/ext/simplexml/tests/010.phpt +++ /dev/null @@ -1,51 +0,0 @@ ---TEST-- -SimpleXML and recursion ---SKIPIF-- -<?php - if (!extension_loaded('simplexml')) print 'skip'; - if (!class_exists('RecursiveIteratorIterator')) print 'skip RecursiveIteratorIterator not available'; -?> ---FILE-- -<?php - -$sxe = simplexml_load_file(dirname(__FILE__).'/006.xml'); - -foreach(new RecursiveIteratorIterator($sxe, 1) as $name => $data) { - var_dump($name); - var_dump(get_class($data)); - var_dump(trim($data)); -} - -echo "===DUMP===\n"; - -var_dump(get_class($sxe)); -var_dump(trim($sxe->elem1)); - -?> -===DONE=== ---EXPECT-- -string(5) "elem1" -string(17) "simplexml_element" -string(10) "Bla bla 1." -string(7) "comment" -string(17) "simplexml_element" -string(0) "" -string(5) "elem2" -string(17) "simplexml_element" -string(28) "Here we have some text data." -string(5) "elem3" -string(17) "simplexml_element" -string(19) "And here some more." -string(5) "elem4" -string(17) "simplexml_element" -string(15) "Wow once again." -string(6) "elem11" -string(17) "simplexml_element" -string(10) "Bla bla 2." -string(7) "elem111" -string(17) "simplexml_element" -string(7) "Foo Bar" -===DUMP=== -string(17) "simplexml_element" -string(10) "Bla bla 1." -===DONE=== |