Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
37.50% |
3 / 8 |
|
37.50% |
3 / 8 |
CRAP | |
0.00% |
0 / 1 |
| phpbb_mock_null_cache | |
37.50% |
3 / 8 |
|
37.50% |
3 / 8 |
23.62 | |
0.00% |
0 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| get | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| put | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| destroy | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| obtain_bots | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| obtain_word_list | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| set_bots | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| sql_exists | |
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 phpbb_mock_null_cache |
| 15 | { |
| 16 | public function __construct() |
| 17 | { |
| 18 | } |
| 19 | |
| 20 | public function get($var_name) |
| 21 | { |
| 22 | return false; |
| 23 | } |
| 24 | |
| 25 | public function put($var_name, $var, $ttl = 0) |
| 26 | { |
| 27 | } |
| 28 | |
| 29 | public function destroy($var_name, $table = '') |
| 30 | { |
| 31 | } |
| 32 | |
| 33 | public function obtain_bots() |
| 34 | { |
| 35 | return array(); |
| 36 | } |
| 37 | |
| 38 | public function obtain_word_list() |
| 39 | { |
| 40 | return array(); |
| 41 | } |
| 42 | |
| 43 | public function set_bots($bots) |
| 44 | { |
| 45 | } |
| 46 | |
| 47 | public function sql_exists($query_id) |
| 48 | { |
| 49 | return false; |
| 50 | } |
| 51 | } |