Skip to content

Commit

Permalink
Add a test to check split text content collecting
Browse files Browse the repository at this point in the history
  • Loading branch information
helly25 committed Dec 16, 2003
1 parent a08a37d commit 5b712c8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions 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===

0 comments on commit 5b712c8

Please sign in to comment.