/** * @ticket CN-849 */ public function testIsConfigured() { $this->assertFalse(Conjoon_Log::isConfigured()); Conjoon_Log::init(array('enabled' => false)); $this->assertTrue(Conjoon_Log::isConfigured()); }
} Zend_Loader_PluginLoader::setIncludeFileCache($classFileIncCache); } // init the logger here! if ($config->log) { /** * @see Conjoon_Log */ require_once 'Conjoon/Log.php'; // load Zend/Log for log constants so we don't have to // require this later on /** * @see Zend_Log */ require_once 'Zend/Log.php'; if (!Conjoon_Log::isConfigured()) { // we might have already configured the logger when // processing the configuration fle $cf = $config->toArray(); Conjoon_Log::init($cf['log']); } } // set as default adapter for all db operations Conjoon_Db_Table::setDefaultAdapter(Zend_Db::factory($config->database->adapter, array('host' => $config->database->params->host, 'username' => $config->database->params->username, 'password' => $config->database->params->password, 'dbname' => $config->database->params->dbname, 'port' => $config->database->params->port, 'driver_options' => array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES UTF8')))); // set tbl prefix Conjoon_Db_Table::setTablePrefix($config->database->table->prefix); // +------------------------------------------------------------------------ // | DOCTRINE // +------------------------------------------------------------------------ /** * @see Doctrine\ORM\Tools\Setup