aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/test_framework/phpbb_database_connection_helper.php10
-rw-r--r--tests/test_framework/phpbb_database_test_case.php2
-rw-r--r--tests/test_framework/phpbb_database_test_connection_manager.php10
3 files changed, 15 insertions, 7 deletions
diff --git a/tests/test_framework/phpbb_database_connection_helper.php b/tests/test_framework/phpbb_database_connection_helper.php
index e1c50655ed..6ba527b5d9 100644
--- a/tests/test_framework/phpbb_database_connection_helper.php
+++ b/tests/test_framework/phpbb_database_connection_helper.php
@@ -1,5 +1,13 @@
<?php
/**
+*
+* @package testing
+* @copyright (c) 2011 phpBB Group
+* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
+*
+*/
+
+/**
* Used for passing in information about the PDO driver
* since the PDO class reveals nothing about the DSN that
* the user provided.
@@ -21,4 +29,4 @@ class phpbb_database_connection_ODBC_PDO_wrapper extends PDO
parent::__construct($dsn, $user, $pass);
}
-} \ No newline at end of file
+}
diff --git a/tests/test_framework/phpbb_database_test_case.php b/tests/test_framework/phpbb_database_test_case.php
index 0e5518fef8..b8be6a852a 100644
--- a/tests/test_framework/phpbb_database_test_case.php
+++ b/tests/test_framework/phpbb_database_test_case.php
@@ -33,7 +33,7 @@ abstract class phpbb_database_test_case extends PHPUnit_Extensions_Database_Test
$db_config = $this->get_database_config();
//Firebird requires table and column names to be uppercase
- if($db_config['dbms'] == 'firebird')
+ if ($db_config['dbms'] == 'firebird')
{
$xml_data = file_get_contents($path);
$xml_data = preg_replace_callback('/(?:(<table name="))([a-z_]+)(?:(">))/', 'phpbb_database_test_case::to_upper', $xml_data);
diff --git a/tests/test_framework/phpbb_database_test_connection_manager.php b/tests/test_framework/phpbb_database_test_connection_manager.php
index 328d90fca9..6e3f602ab7 100644
--- a/tests/test_framework/phpbb_database_test_connection_manager.php
+++ b/tests/test_framework/phpbb_database_test_connection_manager.php
@@ -86,9 +86,9 @@ class phpbb_database_test_connection_manager
//These require different connection strings on the phpBB side than they do in PDO
//so you must provide a DSN string for ODBC separately
- if($this->config['dbms'] == 'mssql' || $this->config['dbms'] == 'firebird')
+ if ($this->config['dbms'] == 'mssql' || $this->config['dbms'] == 'firebird')
{
- if(!empty($this->config['custom_dsn']))
+ if (!empty($this->config['custom_dsn']))
{
$dsn = 'odbc:' . $this->config['custom_dsn'];
}
@@ -96,7 +96,7 @@ class phpbb_database_test_connection_manager
try
{
- switch($this->config['dbms'])
+ switch ($this->config['dbms'])
{
case 'mssql':
case 'mssql_odbc':
@@ -104,7 +104,7 @@ class phpbb_database_test_connection_manager
break;
case 'firebird':
- if(!empty($this->config['custom_dsn']))
+ if (!empty($this->config['custom_dsn']))
{
$this->pdo = new phpbb_database_connection_ODBC_PDO_wrapper('firebird', 0, $dsn, $this->config['dbuser'], $this->config['dbpasswd']);
break;
@@ -408,7 +408,7 @@ class phpbb_database_test_connection_manager
break;
}
- foreach($queries as $query)
+ foreach ($queries as $query)
{
$this->pdo->exec($query);
}