diff options
author | Eric Barnes <eric@ericlbarnes.com> | 2011-04-22 04:00:33 +0200 |
---|---|---|
committer | Eric Barnes <eric@ericlbarnes.com> | 2011-04-22 04:00:33 +0200 |
commit | 68286a4dcc1ed4d904ad992173c1b3621bf6fced (patch) | |
tree | dd24a9e0126058f9d3b0958244b85784f1a66223 /tests/codeigniter/helpers/array_helper_test.php | |
parent | b58aeaca9be4b342bb6d88138005fdc7138828b4 (diff) |
Reworked unit tests to match rest of framework and added a few more.
Diffstat (limited to 'tests/codeigniter/helpers/array_helper_test.php')
-rw-r--r-- | tests/codeigniter/helpers/array_helper_test.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/codeigniter/helpers/array_helper_test.php b/tests/codeigniter/helpers/array_helper_test.php index fd306cee8..62559de83 100644 --- a/tests/codeigniter/helpers/array_helper_test.php +++ b/tests/codeigniter/helpers/array_helper_test.php @@ -6,7 +6,7 @@ require_once(BASEPATH.'helpers/array_helper.php'); class Array_helper_test extends CI_TestCase { - public function setUp() + public function set_up() { $this->my_array = array( 'foo' => 'bar', @@ -18,7 +18,7 @@ class Array_helper_test extends CI_TestCase // ------------------------------------------------------------------------ - public function testElementWithExistingItem() + public function test_element_with_existing_item() { $this->assertEquals(FALSE, element('testing', $this->my_array)); @@ -29,7 +29,7 @@ class Array_helper_test extends CI_TestCase // ------------------------------------------------------------------------ - public function testRandomElement() + public function test_random_element() { // Send a string, not an array to random_element $this->assertEquals('my string', random_element('my string')); @@ -40,7 +40,7 @@ class Array_helper_test extends CI_TestCase // ------------------------------------------------------------------------ - public function testElements() + public function test_elements() { $this->assertEquals(TRUE, is_array(elements('test', $this->my_array))); $this->assertEquals(TRUE, is_array(elements('foo', $this->my_array))); |