summaryrefslogtreecommitdiff
path: root/ext/simplexml/tests/bug37076.phpt
blob: 41e2f9a4c29e22ea661cb07efa2a5404c56e872e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Bug #37076 (SimpleXML ignores .=)
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--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>