aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mock
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2013-04-30 21:53:16 -0500
committerNathaniel Guse <nathaniel.guse@gmail.com>2013-04-30 22:02:10 -0500
commit900467681077b7c4cd48529b53f083c8ea0334f6 (patch)
treead5ca2cad8becdc0fb98310767e016dbfbc4516d /tests/mock
parent2f2feaa4e8ad9a18fd9ddcb7d65ae958c544dbcb (diff)
downloadforums-900467681077b7c4cd48529b53f083c8ea0334f6.tar
forums-900467681077b7c4cd48529b53f083c8ea0334f6.tar.gz
forums-900467681077b7c4cd48529b53f083c8ea0334f6.tar.bz2
forums-900467681077b7c4cd48529b53f083c8ea0334f6.tar.xz
forums-900467681077b7c4cd48529b53f083c8ea0334f6.zip
[ticket/11413] Include mock class
PHPBB3-11413
Diffstat (limited to 'tests/mock')
-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;
+ }
+}