Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
30.00% |
3 / 10 |
|
50.00% |
1 / 2 |
CRAP | |
0.00% |
0 / 1 |
| phpbb_convert_30_dbms_to_31_test | |
30.00% |
3 / 10 |
|
50.00% |
1 / 2 |
3.37 | |
0.00% |
0 / 1 |
| convert_30_dbms_to_31_data | |
0.00% |
0 / 7 |
|
0.00% |
0 / 1 |
2 | |||
| test_convert_30_dbms_to_31 | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | /** |
| 3 | * |
| 4 | * This file is part of the phpBB Forum Software package. |
| 5 | * |
| 6 | * @copyright (c) phpBB Limited <https://www.phpbb.com> |
| 7 | * @license GNU General Public License, version 2 (GPL-2.0) |
| 8 | * |
| 9 | * For full copyright and license information, please see |
| 10 | * the docs/CREDITS.txt file. |
| 11 | * |
| 12 | */ |
| 13 | |
| 14 | class phpbb_convert_30_dbms_to_31_test extends phpbb_test_case |
| 15 | { |
| 16 | public static function convert_30_dbms_to_31_data() |
| 17 | { |
| 18 | return array( |
| 19 | array('mssql_odbc'), |
| 20 | array('mssqlnative'), |
| 21 | array('mysqli'), |
| 22 | array('oracle'), |
| 23 | array('postgres'), |
| 24 | ); |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * @dataProvider convert_30_dbms_to_31_data |
| 29 | */ |
| 30 | public function test_convert_30_dbms_to_31($input) |
| 31 | { |
| 32 | $expected = "phpbb\\db\\driver\\$input"; |
| 33 | $output = \phpbb\config_php_file::convert_30_dbms_to_31($input); |
| 34 | |
| 35 | $this->assertEquals($expected, $output); |
| 36 | } |
| 37 | } |