public function testGetConnectionConfigNormalSetup()
{
$ans = array('host' => 'foo', 'user' => 'user', 'password' => 'xxxx', 'database' => 'elgg');
$CONFIG = new \stdClass();
$CONFIG->dbhost = $ans['host'];
$CONFIG->dbuser = $ans['user'];
$CONFIG->dbpass = $ans['password'];
$CONFIG->dbname = $ans['database'];
$conf = new \Elgg\Database\Config($CONFIG);
$this->assertEquals($ans, $conf->getConnectionConfig());
}