git helper.php
authorMaxime Bourget <bmx007@gmail.com>
Sun, 26 May 2013 08:47:15 +0000 (09:47 +0100)
committerMaxime Bourget <bmx007@gmail.com>
Sun, 26 May 2013 08:47:15 +0000 (09:47 +0100)
test/helper.php [new file with mode: 0644]

diff --git a/test/helper.php b/test/helper.php
new file mode 100644 (file)
index 0000000..0abb772
--- /dev/null
@@ -0,0 +1,15 @@
+<?php
+$path_to_root = '../../';
+require_once 'includes/textcart_manager.inc';
+/*** mock some FA functions ***/
+
+function display_error($msg) {
+}
+
+/** create a date object **/
+/** here, we just create a string **/
+function __date($year, $month, $day) {
+               return "Date: $year/$month/$day";
+}
+/*** end mock ***/
+