projects
/
textcart.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c747ef
)
git helper.php
author
Maxime Bourget
<bmx007@gmail.com>
Sun, 26 May 2013 08:47:15 +0000
(09:47 +0100)
committer
Maxime Bourget
<bmx007@gmail.com>
Sun, 26 May 2013 08:47:15 +0000
(09:47 +0100)
test/helper.php
[new file with mode: 0644]
patch
|
blob
diff --git a/test/helper.php
b/test/helper.php
new file mode 100644
(file)
index 0000000..
0abb772
--- /dev/null
+++ b/
test/helper.php
@@ -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 ***/
+