public function testTextLookInChildrenAndNoChildren() { $p = new HtmlNode('p'); $a = new HtmlNode('a'); $a->addChild(new TextNode('click me')); $p->addChild(new TextNode('Please ')); $p->addChild($a); $p->addChild(new TextNode('!')); $p->text; $p->text(true); $this->assertEquals('Please click me!', $p->text(true)); }