Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 641933edf0
Fetching contributors…

Cannot retrieve contributors at this time

45 lines (39 sloc) 0.901 kB
<?php
abstract class cdb_database_test_case extends phpbb_database_test_case
{
public function __construct($name = NULL, array $data = array(), $dataName = '')
{
parent::__construct($name, $data, $dataName);
}
public function get_database_config()
{
$config = array();
if (!defined('dbms'))
{
$config = array_merge($config, array(
'dbms' => 'sqlite',
'dbhost' => dirname(__FILE__) . '/../blog_unit_tests.sqlite2', // filename
'dbport' => '',
'dbname' => '',
'dbuser' => '',
'dbpasswd' => '',
));
}
else
{
$config = array_merge($config, array(
'dbms' => dbms,
'dbhost' => dbhost,
'dbport' => dbport,
'dbname' => dbname,
'dbuser' => dbuser,
'dbpasswd' => dbpasswd,
));
}
return $config;
}
protected function create_connection_manager($config)
{
return new cdb_database_test_connection_manager($config);
}
}
Jump to Line
Something went wrong with that request. Please try again.