aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_framework/phpbb_test_case_helpers.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2011-10-16 20:34:25 +0200
committerAndreas Fischer <bantu@phpbb.com>2011-10-16 20:34:25 +0200
commit38e7f3fff7df947057cf5f7640d53d0bf170d4a0 (patch)
tree124fa564938a31565d57804cdafabff105c74ebc /tests/test_framework/phpbb_test_case_helpers.php
parentc451a15504b5f7bce636ca909a139a0804907522 (diff)
downloadforums-38e7f3fff7df947057cf5f7640d53d0bf170d4a0.tar
forums-38e7f3fff7df947057cf5f7640d53d0bf170d4a0.tar.gz
forums-38e7f3fff7df947057cf5f7640d53d0bf170d4a0.tar.bz2
forums-38e7f3fff7df947057cf5f7640d53d0bf170d4a0.tar.xz
forums-38e7f3fff7df947057cf5f7640d53d0bf170d4a0.zip
[ticket/10417] Fix array_merge() on undefined $config variable.
PHPBB3-10417
Diffstat (limited to 'tests/test_framework/phpbb_test_case_helpers.php')
-rw-r--r--tests/test_framework/phpbb_test_case_helpers.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_framework/phpbb_test_case_helpers.php b/tests/test_framework/phpbb_test_case_helpers.php
index 9177a443ab..649b88fdfd 100644
--- a/tests/test_framework/phpbb_test_case_helpers.php
+++ b/tests/test_framework/phpbb_test_case_helpers.php
@@ -49,16 +49,18 @@ class phpbb_test_case_helpers
static public function get_test_config()
{
+ $config = array();
+
if (extension_loaded('sqlite') && version_compare(PHPUnit_Runner_Version::id(), '3.4.15', '>='))
{
- $config = array(
+ $config = array_merge($config, array(
'dbms' => 'sqlite',
'dbhost' => dirname(__FILE__) . '/../phpbb_unit_tests.sqlite2', // filename
'dbport' => '',
'dbname' => '',
'dbuser' => '',
'dbpasswd' => '',
- );
+ ));
}
if (file_exists(dirname(__FILE__) . '/../test_config.php'))