1--TEST-- 2CSS Selectors - Pseudo classes: empty 3--EXTENSIONS-- 4dom 5--FILE-- 6<?php 7 8require __DIR__ . '/test_utils.inc'; 9 10$dom = DOM\XMLDocument::createFromString(<<<XML 11<container> 12 <div class="empty"> 13 <p>Element with no content:</p> 14 <div></div> 15 16 <p>Element with comment:</p> 17 <div><!-- Simple Comment --></div> 18 19 <p>Element with PI:</p> 20 <div><?foo?></div> 21 22 <p>Element with CDATA:</p> 23 <div><![CDATA[foo]]></div> 24 25 <p>Element with nested empty element:</p> 26 <div><p></p></div> 27 </div> 28</container> 29XML); 30 31test_helper($dom, '.empty > div:empty'); 32 33?> 34--EXPECT-- 35--- Selector: .empty > div:empty --- 36<div/> 37<div><!-- Simple Comment --></div> 38<div><?foo ?></div> 39