Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
83.33% |
5 / 6 |
|
80.00% |
4 / 5 |
CRAP | |
0.00% |
0 / 1 |
| test_installer_task_mock | |
83.33% |
5 / 6 |
|
80.00% |
4 / 5 |
5.12 | |
0.00% |
0 / 1 |
| __construct | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| run | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| was_task_runned | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| get_task_lang_name | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_step_count | |
100.00% |
1 / 1 |
|
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 test_installer_task_mock extends \phpbb\install\task_base |
| 15 | { |
| 16 | private $task_was_runned; |
| 17 | |
| 18 | public function __construct() |
| 19 | { |
| 20 | $this->task_was_runned = false; |
| 21 | |
| 22 | parent::__construct(); |
| 23 | } |
| 24 | |
| 25 | public function run() |
| 26 | { |
| 27 | $this->task_was_runned = true; |
| 28 | } |
| 29 | |
| 30 | public function was_task_runned() |
| 31 | { |
| 32 | return $this->task_was_runned; |
| 33 | } |
| 34 | |
| 35 | public function get_task_lang_name() |
| 36 | { |
| 37 | return ''; |
| 38 | } |
| 39 | |
| 40 | public static function get_step_count() |
| 41 | { |
| 42 | return 2; |
| 43 | } |
| 44 | } |