1--TEST--
2CSS Selectors - ID
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8require __DIR__ . '/test_utils.inc';
9
10$dom = DOM\XMLDocument::createFromString(<<<XML
11<container>
12    <test id="test1"/>
13    <test/>
14    <test id="test2"/>
15    <test id="test3"/>
16    <test xmlns:x="urn:x" x:id="test4"/>
17</container>
18XML);
19
20test_helper($dom, '#test');
21test_helper($dom, '#test1');
22test_helper($dom, '#test2');
23test_helper($dom, '#test3');
24test_helper($dom, '#test4');
25
26?>
27--EXPECT--
28--- Selector: #test ---
29--- Selector: #test1 ---
30<test id="test1"/>
31--- Selector: #test2 ---
32<test id="test2"/>
33--- Selector: #test3 ---
34<test id="test3"/>
35--- Selector: #test4 ---
36