public function testToString() { $html = $this->loadFixture('posts.html'); $document = new Document($html, false); $this->assertEquals($document->html(), $document->__toString()); }
public function testToStringXml() { $xml = $this->loadFixture('books.xml'); $document = new Document($xml, false, 'UTF-8', 'xml'); $this->assertEquals($document->xml(), $document->__toString()); }