]> granicus.if.org Git - php/commitdiff
Add a test to check split text content collecting
authorMarcus Boerger <helly@php.net>
Tue, 16 Dec 2003 20:50:20 +0000 (20:50 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 16 Dec 2003 20:50:20 +0000 (20:50 +0000)
ext/simplexml/tests/013.phpt [new file with mode: 0755]

diff --git a/ext/simplexml/tests/013.phpt b/ext/simplexml/tests/013.phpt
new file mode 100755 (executable)
index 0000000..8570095
--- /dev/null
@@ -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===