summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-12-16 20:50:20 +0000
committerMarcus Boerger <helly@php.net>2003-12-16 20:50:20 +0000
commit5b712c890c240e00726c326f782c217773d17967 (patch)
tree3485f9122874d039f3aee4d02d9980dc8247f124
parenta08a37dda3c586cc1b0b996d7f6c5ad78e882fd6 (diff)
downloadphp-git-5b712c890c240e00726c326f782c217773d17967.tar.gz
Add a test to check split text content collecting
-rwxr-xr-xext/simplexml/tests/013.phpt24
1 files changed, 24 insertions, 0 deletions
diff --git a/ext/simplexml/tests/013.phpt b/ext/simplexml/tests/013.phpt
new file mode 100755
index 0000000000..85700956b6
--- /dev/null
+++ b/ext/simplexml/tests/013.phpt
@@ -0,0 +1,24 @@
+--TEST--
+SimpleXML and Split text content
+--SKIPIF--
+<?php
+ if (!extension_loaded('simplexml')) print 'skip';
+ if (!class_exists('RecursiveIteratorIterator')) print 'skip RecursiveIteratorIterator not available';
+?>
+--FILE--
+<?php
+
+$xml =<<<EOF
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<foo>bar<baz/>bar</foo>
+EOF;
+
+$sxe = simplexml_load_string($xml);
+
+var_dump((string)$sxe);
+
+?>
+===DONE===
+--EXPECT--
+string(6) "barbar"
+===DONE===