public function testText() { $html = $this->loadFixture('posts.html'); $document = new Document($html, false); $this->assertTrue(is_string($document->text())); }
public function testText() { $html = '<html>foo</html>'; $document = new Document($html, false); $this->assertEquals('foo', $document->text()); }