xref: /PHP-8.0/ext/simplexml/tests/bug37076.phpt (revision a555cc0b)
1--TEST--
2Bug #37076 (SimpleXML ignores .=)
3--SKIPIF--
4<?php if (!extension_loaded("simplexml")) print "skip"; ?>
5--FILE--
6<?php
7$xml = simplexml_load_string("<root><foo /></root>");
8$xml->foo = "foo";
9$xml->foo .= "bar";
10print $xml->asXML();
11?>
12--EXPECT--
13<?xml version="1.0"?>
14<root><foo>foobar</foo></root>
15