public function testFormat() { $html = $this->loadFixture('posts.html'); $document = new Document($html, false); $domDocument = $document->getDocument(); $this->assertFalse($domDocument->formatOutput); $document->format(); $domDocument = $document->getDocument(); $this->assertTrue($domDocument->formatOutput); }