diff options
author | Andrey Andreev <narf@devilix.net> | 2014-02-17 16:31:23 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-02-17 16:31:23 +0100 |
commit | 3ddd564ca90b9296775c92566af942468a9ee358 (patch) | |
tree | 01a4870f0b9da57274dde4d5050813d1cef7a0bb /tests/codeigniter/helpers/array_helper_test.php | |
parent | e9c8c8988da2e6903b22e5444a2c9ddbe30a39ec (diff) |
[ci skip] Minor tests adjustments
Diffstat (limited to 'tests/codeigniter/helpers/array_helper_test.php')
-rw-r--r-- | tests/codeigniter/helpers/array_helper_test.php | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/tests/codeigniter/helpers/array_helper_test.php b/tests/codeigniter/helpers/array_helper_test.php index ba46e86f9..5a9958971 100644 --- a/tests/codeigniter/helpers/array_helper_test.php +++ b/tests/codeigniter/helpers/array_helper_test.php @@ -2,16 +2,16 @@ class Array_helper_test extends CI_TestCase { + public $my_array = array( + 'foo' => 'bar', + 'sally' => 'jim', + 'maggie' => 'bessie', + 'herb' => 'cook' + ); + public function set_up() { $this->helper('array'); - - $this->my_array = array( - 'foo' => 'bar', - 'sally' => 'jim', - 'maggie' => 'bessie', - 'herb' => 'cook' - ); } // ------------------------------------------------------------------------ @@ -19,9 +19,7 @@ class Array_helper_test extends CI_TestCase { public function test_element_with_existing_item() { $this->assertEquals(FALSE, element('testing', $this->my_array)); - $this->assertEquals('not set', element('testing', $this->my_array, 'not set')); - $this->assertEquals('bar', element('foo', $this->my_array)); } |