summaryrefslogtreecommitdiffstats
path: root/tests/mocks
diff options
context:
space:
mode:
authorAlex Bilbie <alex@alexbilbie.com>2012-08-30 00:23:22 +0200
committerAlex Bilbie <alex@alexbilbie.com>2012-08-30 00:23:22 +0200
commit0c886901bc013e477b8c5eb9bc5e60c91d1fac56 (patch)
tree86499b6f40daae10bb127572a1b2dd4111e92b75 /tests/mocks
parent1e40c213610a4bb643e51c2b298629471664163b (diff)
Added lang mock and upload mock
Diffstat (limited to 'tests/mocks')
-rw-r--r--tests/mocks/core/lang.php15
-rw-r--r--tests/mocks/libraries/upload.php3
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/mocks/core/lang.php b/tests/mocks/core/lang.php
new file mode 100644
index 000000000..1b99aedb3
--- /dev/null
+++ b/tests/mocks/core/lang.php
@@ -0,0 +1,15 @@
+<?php
+
+class Mock_Core_Lang extends CI_Lang {
+
+ function line($line = '')
+ {
+ return FALSE;
+ }
+
+ function load($langfile, $idiom = '', $return = false, $add_suffix = true, $alt_path = '')
+ {
+ return;
+ }
+
+} \ No newline at end of file
diff --git a/tests/mocks/libraries/upload.php b/tests/mocks/libraries/upload.php
new file mode 100644
index 000000000..988723e45
--- /dev/null
+++ b/tests/mocks/libraries/upload.php
@@ -0,0 +1,3 @@
+<?php
+
+class Mock_Libraries_Upload extends CI_Upload {} \ No newline at end of file