aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mock/sql_insert_buffer.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mock/sql_insert_buffer.php')
-rw-r--r--tests/mock/sql_insert_buffer.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/mock/sql_insert_buffer.php b/tests/mock/sql_insert_buffer.php
new file mode 100644
index 0000000000..ba09aa8d7f
--- /dev/null
+++ b/tests/mock/sql_insert_buffer.php
@@ -0,0 +1,21 @@
+<?php
+/**
+*
+* @package testing
+* @copyright (c) 2013 phpBB Group
+* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
+*
+*/
+
+class phpbb_mock_sql_insert_buffer extends phpbb_db_sql_insert_buffer
+{
+ public function flush()
+ {
+ return (sizeof($this->buffer)) ? true : false;
+ }
+
+ public function get_buffer()
+ {
+ return $this->buffer;
+ }
+}