aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2013-05-03 08:37:09 -0500
committerNathaniel Guse <nathaniel.guse@gmail.com>2013-05-03 08:37:09 -0500
commit77436595630d3aa267ebb9b00d12e899818a34b7 (patch)
tree22c7aedb7ed07f599a2492a6d3c646b2a668d40d /tests
parenta4fe72bd533ef6ebe2040b0dbc8c26ebed1528e2 (diff)
downloadforums-77436595630d3aa267ebb9b00d12e899818a34b7.tar
forums-77436595630d3aa267ebb9b00d12e899818a34b7.tar.gz
forums-77436595630d3aa267ebb9b00d12e899818a34b7.tar.bz2
forums-77436595630d3aa267ebb9b00d12e899818a34b7.tar.xz
forums-77436595630d3aa267ebb9b00d12e899818a34b7.zip
[ticket/11420] Forgot to include mock sql_insert_buffer
PHPBB3-11420
Diffstat (limited to 'tests')
-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;
+ }
+}