summaryrefslogtreecommitdiff
path: root/ext/simplexml/tests/016a.phpt
blob: 9797e2930564b079a7438cefe8bc0c102a7e66c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--TEST--
SimpleXML: concatenating attributes
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
<?php 
$xml =<<<EOF
<people>
   <person name="Foo"></person>
</people>
EOF;

$people = simplexml_load_string($xml);
var_dump($people->person['name']);
$people->person['name'] .= 'Bar';
var_dump($people->person['name']);

?>
===DONE===
--EXPECTF--
object(SimpleXMLElement)#%d (1) {
  [0]=>
  string(3) "Foo"
}
object(SimpleXMLElement)#%d (1) {
  [0]=>
  string(6) "FooBar"
}
===DONE===