diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-11-25 14:05:57 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-11-25 14:05:57 +0100 |
commit | ade05b40714070bcda7ab32187068e95b98c8cf8 (patch) | |
tree | 7908487f27840c04b28909363093d77de3415249 /tests/mocks | |
parent | ad5f1d032fb3204bc1b81891a3231ae8ac47392b (diff) | |
parent | 1713d322a309d9cf405cfe83e2131368f29b222b (diff) |
Merge pull request #2030 from dchill42/unit_tests
Replaced Mock_Core_Lang with PHPUnit mockups
Diffstat (limited to 'tests/mocks')
-rw-r--r-- | tests/mocks/core/lang.php | 15 | ||||
-rw-r--r-- | tests/mocks/libraries/calendar.php | 25 |
2 files changed, 0 insertions, 40 deletions
diff --git a/tests/mocks/core/lang.php b/tests/mocks/core/lang.php deleted file mode 100644 index 27ea3faba..000000000 --- a/tests/mocks/core/lang.php +++ /dev/null @@ -1,15 +0,0 @@ -<?php - -class Mock_Core_Lang extends CI_Lang { - - public function line($line = '') - { - return FALSE; - } - - public function load($langfile, $idiom = '', $return = FALSE, $add_suffix = TRUE, $alt_path = '') - { - return; - } - -}
\ No newline at end of file diff --git a/tests/mocks/libraries/calendar.php b/tests/mocks/libraries/calendar.php deleted file mode 100644 index 8fee5365e..000000000 --- a/tests/mocks/libraries/calendar.php +++ /dev/null @@ -1,25 +0,0 @@ -<?php - -class Mock_Libraries_Calendar extends CI_Calendar { - - public function __construct($config = array()) - { - $this->CI = new stdClass; - $this->CI->lang = new Mock_Core_Lang(); - - if ( ! in_array('calendar_lang.php', $this->CI->lang->is_loaded, TRUE)) - { - $this->CI->lang->load('calendar'); - } - - $this->local_time = time(); - - if (count($config) > 0) - { - $this->initialize($config); - } - - log_message('debug', 'Calendar Class Initialized'); - } - -}
\ No newline at end of file |