We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bb7098 commit 4e3158cCopy full SHA for 4e3158c
tests/DomTest.php
@@ -619,4 +619,23 @@ public function testUniqueIdForAllObjects()
619
620
$this->assertEquals('A container div<p>Our new paragraph.</p>', $div->innerhtml);
621
}
622
+
623
+ public function testFindDescendantsOfMatch()
624
+ {
625
+ $dom = new Dom();
626
+ $dom->load('<p>
627
+ <b>
628
+ test
629
+ <b>testing</b>
630
+ <b>This is a test</b>
631
+ <i>italic</i>
632
+ <b>password123</b>
633
+ </b>
634
+ <i><b>another</b></i>
635
+ </p>');
636
637
+ /** @var Dom\AbstractNode $meta */
638
+ $nodes = $dom->find('b');
639
+ $this->assertCount(5, $nodes);
640
+ }
641
0 commit comments