Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
4 / 4 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
| phpbb_mock_config_php_file | |
100.00% |
4 / 4 |
|
100.00% |
2 / 2 |
3 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| load_config_file | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
2 | |||
| 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_mock_config_php_file extends \phpbb\config_php_file { |
| 15 | public function __construct() |
| 16 | { |
| 17 | } |
| 18 | |
| 19 | protected function load_config_file() |
| 20 | { |
| 21 | if (!$this->config_loaded) |
| 22 | { |
| 23 | $this->config_data = phpbb_test_case_helpers::get_test_config(); |
| 24 | $this->config_loaded = true; |
| 25 | } |
| 26 | } |
| 27 | } |