public function testCanWritePrettyPrintedVersion() { $config = new Zend_Config_Json(dirname(__FILE__) . '/files/allsections-pretty.json'); $writer = new Zend_Config_Writer_Json(array('config' => $config, 'filename' => $this->_tempName)); $writer->setPrettyPrint(true); $writer->write(); $testOutput = file_get_contents($this->_tempName); $this->assertRegExp('/^\\s+/m', $testOutput); }