aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPatrick Webster <noxwizard@phpbb.com>2012-05-13 16:56:07 -0500
committerPatrick Webster <noxwizard@phpbb.com>2012-05-13 16:56:07 -0500
commit29b36b214a809b6ae49f941a4e3965ffba2b8741 (patch)
tree3202a6bed041d6aa1f8154a3251716a754ad262c /tests
parent1496a4198a930e3f9412f6beb6c0307ddeeb6dda (diff)
downloadforums-29b36b214a809b6ae49f941a4e3965ffba2b8741.tar
forums-29b36b214a809b6ae49f941a4e3965ffba2b8741.tar.gz
forums-29b36b214a809b6ae49f941a4e3965ffba2b8741.tar.bz2
forums-29b36b214a809b6ae49f941a4e3965ffba2b8741.tar.xz
forums-29b36b214a809b6ae49f941a4e3965ffba2b8741.zip
[ticket/10678] Typo and formatting
PHPBB3-10678
Diffstat (limited to 'tests')
-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
*