aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mock
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-07-13 11:15:53 -0400
committerJoas Schilling <nickvergessen@gmx.de>2013-07-13 11:15:53 -0400
commit1584fdd26dd73610d76e1bacf25c442d5d59f0f9 (patch)
treedb1dd56590f4ab83f4b9e188822b30ca8fa90649 /tests/mock
parent7b0a6ef06c0f84634ba6f2ba3c2c9d304e61a19a (diff)
parentfa8f62a604d5d885f6126619ca1dc3db7b0731a7 (diff)
downloadforums-1584fdd26dd73610d76e1bacf25c442d5d59f0f9.tar
forums-1584fdd26dd73610d76e1bacf25c442d5d59f0f9.tar.gz
forums-1584fdd26dd73610d76e1bacf25c442d5d59f0f9.tar.bz2
forums-1584fdd26dd73610d76e1bacf25c442d5d59f0f9.tar.xz
forums-1584fdd26dd73610d76e1bacf25c442d5d59f0f9.zip
Merge remote-tracking branch 'EXreaction/ticket/11420' into develop
* EXreaction/ticket/11420: [ticket/11420] Fix tests [ticket/11420] Fix tests [ticket/11420] Fix tests [ticket/11420] Use !==, === when comparing strings [ticket/11420] Fix comments, license link [ticket/11420] Rename migrations file to something more helpful [ticket/11420] Forgot to include mock sql_insert_buffer [ticket/11420] Fix notification options conversion
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;
+ }
+}