aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/test_framework/phpbb_database_connection_odbc_pdo_wrapper.php2
-rw-r--r--tests/test_framework/phpbb_database_test_case.php10
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_framework/phpbb_database_connection_odbc_pdo_wrapper.php b/tests/test_framework/phpbb_database_connection_odbc_pdo_wrapper.php
index 5eba2e7a2e..cb5956be9f 100644
--- a/tests/test_framework/phpbb_database_connection_odbc_pdo_wrapper.php
+++ b/tests/test_framework/phpbb_database_connection_odbc_pdo_wrapper.php
@@ -25,7 +25,7 @@ class phpbb_database_connection_odbc_pdo_wrapper extends PDO
function __construct($dbms, $version, $dsn, $user, $pass)
{
$this->driver = $dbms;
- $this->version = (double)$version;
+ $this->version = (double) $version;
parent::__construct($dsn, $user, $pass);
}
diff --git a/tests/test_framework/phpbb_database_test_case.php b/tests/test_framework/phpbb_database_test_case.php
index 53c3702aa6..bb86df0ef0 100644
--- a/tests/test_framework/phpbb_database_test_case.php
+++ b/tests/test_framework/phpbb_database_test_case.php
@@ -39,11 +39,11 @@ abstract class phpbb_database_test_case extends PHPUnit_Extensions_Database_Test
$xml_data = preg_replace_callback('/(?:(<table name="))([a-z_]+)(?:(">))/', 'phpbb_database_test_case::to_upper', $xml_data);
$xml_data = preg_replace_callback('/(?:(<column>))([a-z_]+)(?:(<\/column>))/', 'phpbb_database_test_case::to_upper', $xml_data);
- $temp = tmpfile();
- fwrite($temp, $xml_data);
- fseek($temp, 0);
+ $new_fixture = tmpfile();
+ fwrite($new_fixture, $xml_data);
+ fseek($new_fixture, 0);
- $meta_data = stream_get_meta_data($temp);
+ $meta_data = stream_get_meta_data($new_fixture);
$path = $meta_data['uri'];
}
@@ -131,7 +131,7 @@ abstract class phpbb_database_test_case extends PHPUnit_Extensions_Database_Test
/**
* Converts a match in the middle of a string to uppercase.
- * This is necessary for tranforming the fixture information for Firebird tests
+ * This is necessary for transforming the fixture information for Firebird tests
*
* @param $matches The array of matches from a regular expression
*