ru_php/ext/simplexml/tests/bug37076.phpt

15 lines
264 B
PHP

--TEST--
Bug #37076 (SimpleXML ignores .=)
--EXTENSIONS--
simplexml
--FILE--
<?php
$xml = simplexml_load_string("<root><foo /></root>");
$xml->foo = "foo";
$xml->foo .= "bar";
print $xml->asXML();
?>
--EXPECT--
<?xml version="1.0"?>
<root><foo>foobar</foo></root>