diff options
| author | Andreas Fischer <bantu@phpbb.com> | 2014-06-22 23:41:14 +0200 |
|---|---|---|
| committer | Andreas Fischer <bantu@phpbb.com> | 2014-06-22 23:41:14 +0200 |
| commit | 4f2acbaed2028cc1b5ad96f6eada97b1cc94532f (patch) | |
| tree | f42989ea54dd5e75b3a9eb76c476acb4df861025 /tests/test_framework/phpbb_database_test_case.php | |
| parent | de04304e94c428afd6dcb9f42b215ebbb6cc14d2 (diff) | |
| parent | dc7ed58bf5be6b3228389f414634f0a4116c6278 (diff) | |
| download | forums-4f2acbaed2028cc1b5ad96f6eada97b1cc94532f.tar forums-4f2acbaed2028cc1b5ad96f6eada97b1cc94532f.tar.gz forums-4f2acbaed2028cc1b5ad96f6eada97b1cc94532f.tar.bz2 forums-4f2acbaed2028cc1b5ad96f6eada97b1cc94532f.tar.xz forums-4f2acbaed2028cc1b5ad96f6eada97b1cc94532f.zip | |
Merge pull request #2629 from nickvergessen/ticket/12747
[ticket/12747] Drop support for Firebird
* nickvergessen/ticket/12747:
[ticket/12747] Remove some methods which are not used anymore
[ticket/12747] Drop support for Firebird
Conflicts:
phpBB/phpbb/db/driver/firebird.php
Diffstat (limited to 'tests/test_framework/phpbb_database_test_case.php')
| -rw-r--r-- | tests/test_framework/phpbb_database_test_case.php | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/tests/test_framework/phpbb_database_test_case.php b/tests/test_framework/phpbb_database_test_case.php index 1f3a564205..46276bcfcb 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; } @@ -244,19 +226,6 @@ abstract class phpbb_database_test_case extends PHPUnit_Extensions_Database_Test return new phpbb_database_test_connection_manager($config); } - /** - * 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 - * - * @return string The string with the specified match converted to uppercase - */ - static public function to_upper($matches) - { - return $matches[1] . strtoupper($matches[2]) . $matches[3]; - } - public function assert_array_content_equals($one, $two) { // http://stackoverflow.com/questions/3838288/phpunit-assert-two-arrays-are-equal-but-order-of-elements-not-important |
