/** * Show table info (DESCRIBE query) for given table * * @param array $args * @return void */ public function info(array $args = array()) { if (empty($args)) { Garp_Cli::errorOut('Insufficient arguments'); Garp_Cli::lineOut('Usage: garp Db info <tablename>'); return; } $db = new Zend_Db_Table($args[0]); Garp_Cli::lineOut(Zend_Config_Writer_Yaml::encode($db->info())); Garp_Cli::lineOut(''); }
public function testArgumentOverride() { $config = new Zend_Config(array('default' => array('test' => 'foo'))); $writer = new Zend_Config_Writer_Yaml(); $writer->write($this->_tempName, $config); $config = new Zend_Config_Yaml($this->_tempName, null); $this->assertEquals('foo', $config->default->test); }