xref: /php-src/ext/simplexml/tests/038.phpt (revision 7f2f0c00)
1--TEST--
2SimpleXML: Property assignment return value
3--EXTENSIONS--
4simplexml
5--FILE--
6<?php
7$xml =<<<EOF
8<root></root>
9EOF;
10$root = simplexml_load_string($xml);
11var_dump($root->prop = 42);
12?>
13--EXPECT--
14int(42)
15