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