php-src/ext/simplexml/tests/013.phpt
Rob Richards a3e906515c add unicode support
update tests (binary string must be passed to simplexml_load_string)
2006-08-08 20:52:45 +00:00

27 lines
377 B
PHP
Executable File

--TEST--
SimpleXML: Split text content
--SKIPIF--
<?php
if (!extension_loaded('simplexml')) print 'skip';
?>
--FILE--
<?php
$xml =b<<<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===
--UEXPECT--
unicode(6) "barbar"
===DONE===