Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
42.11% covered (danger)
42.11%
8 / 19
44.44% covered (danger)
44.44%
8 / 18
CRAP
0.00% covered (danger)
0.00%
0 / 1
dummy
42.11% covered (danger)
42.11%
8 / 19
44.44% covered (danger)
44.44%
8 / 18
80.87
0.00% covered (danger)
0.00%
0 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 load
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 unload
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 save
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 tidy
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
 get
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 put
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 purge
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 destroy
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 _exists
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 _read
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 sql_load
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 sql_save
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 sql_exists
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 sql_fetchrow
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 sql_fetchfield
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 sql_rowseek
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 sql_freeresult
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 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
14namespace phpbb\cache\driver;
15
16/**
17* ACM dummy Caching
18*/
19class dummy extends \phpbb\cache\driver\base
20{
21    /**
22    * Set cache path
23    */
24    function __construct()
25    {
26    }
27
28    /**
29    * {@inheritDoc}
30    */
31    function load()
32    {
33        return true;
34    }
35
36    /**
37    * {@inheritDoc}
38    */
39    function unload()
40    {
41    }
42
43    /**
44    * {@inheritDoc}
45    */
46    function save()
47    {
48    }
49
50    /**
51    * {@inheritDoc}
52    */
53    function tidy()
54    {
55        global $config;
56
57        // This cache always has a tidy room.
58        $config->set('cache_last_gc', time(), false);
59    }
60
61    /**
62    * {@inheritDoc}
63    */
64    function get($var_name)
65    {
66        return false;
67    }
68
69    /**
70    * {@inheritDoc}
71    */
72    function put($var_name, $var, $ttl = 0)
73    {
74    }
75
76    /**
77    * {@inheritDoc}
78    */
79    function purge()
80    {
81    }
82
83    /**
84    * {@inheritDoc}
85    */
86    function destroy($var_name, $table = '')
87    {
88    }
89
90    /**
91    * {@inheritDoc}
92    */
93    function _exists($var_name)
94    {
95        return false;
96    }
97
98    /**
99     * {@inheritDoc}
100     */
101    protected function _read(string $var)
102    {
103        return false;
104    }
105
106    /**
107    * {@inheritDoc}
108    */
109    function sql_load($query)
110    {
111        return false;
112    }
113
114    /**
115    * {@inheritDoc}
116    */
117    function sql_save(\phpbb\db\driver\driver_interface $db, $query, $query_result, $ttl)
118    {
119        return $query_result;
120    }
121
122    /**
123    * {@inheritDoc}
124    */
125    function sql_exists($query_id)
126    {
127        return false;
128    }
129
130    /**
131    * {@inheritDoc}
132    */
133    function sql_fetchrow($query_id)
134    {
135        return false;
136    }
137
138    /**
139    * {@inheritDoc}
140    */
141    function sql_fetchfield($query_id, $field)
142    {
143        return false;
144    }
145
146    /**
147    * {@inheritDoc}
148    */
149    function sql_rowseek($rownum, $query_id)
150    {
151        return false;
152    }
153
154    /**
155    * {@inheritDoc}
156    */
157    function sql_freeresult($query_id)
158    {
159        return false;
160    }
161}