markTestSkipped("MySQL extension for PDO not loaded"); } // Attempt to connect, if there is a test config file if (is_file(QTEST_DIR . "/settings.json")) { $params = json_decode(file_get_contents(QTEST_DIR . "/settings.json")); $params = $params->mysql; $this->db = new \Query\Driver\MySQL("mysql:host={$params->host};dbname={$params->database}", $params->user, $params->pass, array( PDO::ATTR_PERSISTENT => TRUE )); } elseif (($var = getenv('CI'))) { $this->db = new \Query\Driver\MySQL('host=127.0.0.1;port=3306;dbname=test', 'root'); } $this->db->table_prefix = 'create_'; } } // End of MySQLTableTest.php