/** * Log Group 狀態 */ public function testEnableLog() { Pix_Table::enableLog(Pix_Table::LOG_CACHE); $this->assertEquals(Pix_Table::getLogStatus(Pix_Table::LOG_CACHE), true); Pix_Table::disableLog(Pix_Table::LOG_CACHE); $this->assertEquals(Pix_Table::getLogStatus(Pix_Table::LOG_CACHE), null); }
<?php include __DIR__ . '/init.inc.php'; if ($_SERVER['argv'][1] == '-d') { Pix_Table::enableLog(Pix_Table::LOG_QUERY); } Pix_Prompt::init();