xref: /PHP-7.0/ext/dom/tests/bug67474.phpt (revision 19c4a2ef)
1--TEST--
2Bug #67474 getElementsByTagNameNS and default namespace
3--SKIPIF--
4<?php
5require_once('skipif.inc');
6?>
7--FILE--
8<?php
9$doc = new DOMDocument();
10$doc->loadXML('<root xmlns:x="x"><a/><x:a/></root>');
11$list = $doc->getElementsByTagNameNS('', 'a');
12var_dump($list->length);
13$list = $doc->getElementsByTagNameNS(null, 'a');
14var_dump($list->length);
15?>
16--EXPECT--
17int(1)
18int(1)
19