public function testAncestorByTag() { $node = new TextNode('foo bar'); $text = $node->ancestorByTag('text'); $this->assertEquals($node, $text); }