xref: /php-src/ext/dom/tests/gh16473.phpt (revision 41af9335)
1--TEST--
2GH-16473 (dom_import_simplexml stub is wrong)
3--EXTENSIONS--
4dom
5simplexml
6--FILE--
7<?php
8$root = simplexml_load_string('<root xmlns:x="urn:x" x:attr="foo"/>');
9$attr = $root->attributes('urn:x');
10var_dump(dom_import_simplexml($attr)->textContent);
11?>
12--EXPECT--
13string(3) "foo"
14