public function testIsCommentNode() { $element = new Element('div'); $element->setInnerHtml(' Foo <span>Bar</span><!-- Baz -->'); $children = $element->children(); $this->assertFalse($children[0]->isCommentNode()); $this->assertFalse($children[1]->isCommentNode()); $this->assertTrue($children[2]->isCommentNode()); }