mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge remote-tracking branch 'bantu/ticket/10417' into develop
* bantu/ticket/10417: [ticket/10417] Fix array_merge() on undefined $config variable.
This commit is contained in:
commit
2d42dbc385
1 changed files with 4 additions and 2 deletions
|
@ -49,16 +49,18 @@ class phpbb_test_case_helpers
|
||||||
|
|
||||||
static public function get_test_config()
|
static public function get_test_config()
|
||||||
{
|
{
|
||||||
|
$config = array();
|
||||||
|
|
||||||
if (extension_loaded('sqlite') && version_compare(PHPUnit_Runner_Version::id(), '3.4.15', '>='))
|
if (extension_loaded('sqlite') && version_compare(PHPUnit_Runner_Version::id(), '3.4.15', '>='))
|
||||||
{
|
{
|
||||||
$config = array(
|
$config = array_merge($config, array(
|
||||||
'dbms' => 'sqlite',
|
'dbms' => 'sqlite',
|
||||||
'dbhost' => dirname(__FILE__) . '/../phpbb_unit_tests.sqlite2', // filename
|
'dbhost' => dirname(__FILE__) . '/../phpbb_unit_tests.sqlite2', // filename
|
||||||
'dbport' => '',
|
'dbport' => '',
|
||||||
'dbname' => '',
|
'dbname' => '',
|
||||||
'dbuser' => '',
|
'dbuser' => '',
|
||||||
'dbpasswd' => '',
|
'dbpasswd' => '',
|
||||||
);
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file_exists(dirname(__FILE__) . '/../test_config.php'))
|
if (file_exists(dirname(__FILE__) . '/../test_config.php'))
|
||||||
|
|
Loading…
Add table
Reference in a new issue