aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_framework/phpbb_database_test_case.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-06-20 12:35:42 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-06-20 12:35:42 +0200
commit04164affe672be6feea676fd05cf9761bf2e477a (patch)
treec4c3276ccf9ab6e051ab1773f382b01a830992ad /tests/test_framework/phpbb_database_test_case.php
parent70d4ede9b204ba9d2c3e1ae14258cd8c879db403 (diff)
downloadforums-04164affe672be6feea676fd05cf9761bf2e477a.tar
forums-04164affe672be6feea676fd05cf9761bf2e477a.tar.gz
forums-04164affe672be6feea676fd05cf9761bf2e477a.tar.bz2
forums-04164affe672be6feea676fd05cf9761bf2e477a.tar.xz
forums-04164affe672be6feea676fd05cf9761bf2e477a.zip
[ticket/12747] Drop support for Firebird
PHPBB3-12747
Diffstat (limited to 'tests/test_framework/phpbb_database_test_case.php')
-rw-r--r--tests/test_framework/phpbb_database_test_case.php19
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/test_framework/phpbb_database_test_case.php b/tests/test_framework/phpbb_database_test_case.php
index 1f3a564205..4bbc6b6736 100644
--- a/tests/test_framework/phpbb_database_test_case.php
+++ b/tests/test_framework/phpbb_database_test_case.php
@@ -145,25 +145,7 @@ abstract class phpbb_database_test_case extends PHPUnit_Extensions_Database_Test
public function createXMLDataSet($path)
{
- $db_config = $this->get_database_config();
-
- // Firebird requires table and column names to be uppercase
- if ($db_config['dbms'] == 'phpbb\db\driver\firebird')
- {
- $xml_data = file_get_contents($path);
- $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);
-
- $new_fixture = tmpfile();
- fwrite($new_fixture, $xml_data);
- fseek($new_fixture, 0);
-
- $meta_data = stream_get_meta_data($new_fixture);
- $path = $meta_data['uri'];
- }
-
$this->fixture_xml_data = parent::createXMLDataSet($path);
-
return $this->fixture_xml_data;
}
@@ -246,7 +228,6 @@ 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 transforming the fixture information for Firebird tests
*
* @param $matches The array of matches from a regular expression
*