xref: /php-src/ext/simplexml/tests/bug41867.phpt (revision 7f2f0c00)
1--TEST--
2Bug #41867 (getName is broken)
3--EXTENSIONS--
4simplexml
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--EXPECT--
14a
15b
16c
17