Convert the document to its string representation.
public __toString ( ) : string | ||
return | string |
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()); }