public function text() { return $this->getElement()->textContent; }
public function testText() { $html = $this->loadFixture('posts.html'); $document = new Document($html, false); $this->assertTrue(is_string($document->text())); }