private static function getDbConfig() { $configs = Frapi_Internal::getDB()->query($sql)->fetchAll(); $conf = array(); foreach ($configs as $key => $value) { $conf[$value['key']] = $value['value']; } unset($configs); unset($db); return $conf; }
/** * Test Internal class can init DB. * **/ public function testInitDB() { $db = Frapi_Internal::getDB(); $this->assertTrue($db instanceof PDO); }