diff options
-rwxr-xr-x | ext/simplexml/tests/013.phpt | 24 |
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=== |