xref: /PHP-5.6/ext/simplexml/tests/bug41867.phpt (revision cfc417af)
1--TEST--
2Bug #41867 (getName is broken)
3--SKIPIF--
4<?php if (!extension_loaded("simplexml")) print "skip"; ?>
5--FILE--
6<?php
7
8$a = simplexml_load_string("<a><b><c/></b></a>");
9echo $a->getName()."\n";
10echo $a->b->getName()."\n";
11echo $a->b->c->getName()."\n";
12?>
13===DONE===
14--EXPECT--
15a
16b
17c
18===DONE===
19