aboutsummaryrefslogtreecommitdiffstats
path: root/tests/class_loader/cache_mock.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/class_loader/cache_mock.php')
-rw-r--r--tests/class_loader/cache_mock.php49
1 files changed, 47 insertions, 2 deletions
diff --git a/tests/class_loader/cache_mock.php b/tests/class_loader/cache_mock.php
index b254978fcc..73d1e64cf5 100644
--- a/tests/class_loader/cache_mock.php
+++ b/tests/class_loader/cache_mock.php
@@ -8,7 +8,9 @@
*
*/
-class phpbb_cache_mock
+require '../phpBB/includes/cache/driver/interface.php';
+
+class phpbb_cache_mock implements phpbb_cache_driver_interface
{
private $variables = array();
@@ -22,8 +24,51 @@ class phpbb_cache_mock
return false;
}
- function put($var_name, $value)
+ function put($var_name, $value, $ttl = 0)
{
$this->variables[$var_name] = $value;
}
+
+ function load()
+ {
+ }
+ function unload()
+ {
+ }
+ function save()
+ {
+ }
+ function tidy()
+ {
+ }
+ function purge()
+ {
+ }
+ function destroy($var_name, $table = '')
+ {
+ }
+ public function _exists($var_name)
+ {
+ }
+ public function sql_load($query)
+ {
+ }
+ public function sql_save($query, &$query_result, $ttl)
+ {
+ }
+ public function sql_exists($query_id)
+ {
+ }
+ public function sql_fetchrow($query_id)
+ {
+ }
+ public function sql_fetchfield($query_id, $field)
+ {
+ }
+ public function sql_rowseek($rownum, $query_id)
+ {
+ }
+ public function sql_freeresult($query_id)
+ {
+ }
}