summaryrefslogtreecommitdiffstats
path: root/tests/lib/ci_testcase.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/ci_testcase.php')
-rw-r--r--tests/lib/ci_testcase.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/lib/ci_testcase.php b/tests/lib/ci_testcase.php
index 10539a3af..8ca71fdf2 100644
--- a/tests/lib/ci_testcase.php
+++ b/tests/lib/ci_testcase.php
@@ -25,6 +25,8 @@ class CI_TestCase extends PHPUnit_Framework_TestCase {
'model' => 'model'
);
+ // --------------------------------------------------------------------
+
public function __construct()
{
parent::__construct();
@@ -34,6 +36,26 @@ class CI_TestCase extends PHPUnit_Framework_TestCase {
// --------------------------------------------------------------------
+ public function setUp()
+ {
+ if (method_exists($this, 'set_up'))
+ {
+ $this->set_up();
+ }
+ }
+
+ // --------------------------------------------------------------------
+
+ public function tearDown()
+ {
+ if (method_exists($this, 'tear_down'))
+ {
+ $this->tear_down();
+ }
+ }
+
+ // --------------------------------------------------------------------
+
function ci_set_config($key, $val = '')
{
if (is_array($key))