mirror of
https://github.com/php/php-src.git
synced 2024-10-04 16:26:13 +00:00
a3e906515c
update tests (binary string must be passed to simplexml_load_string)
27 lines
377 B
PHP
Executable File
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===
|