Reworked unit tests to match rest of framework and added a few more.
diff --git a/tests/codeigniter/helpers/array_helper_test.php b/tests/codeigniter/helpers/array_helper_test.php
index fd306ce..62559de 100644
--- a/tests/codeigniter/helpers/array_helper_test.php
+++ b/tests/codeigniter/helpers/array_helper_test.php
@@ -6,7 +6,7 @@
class Array_helper_test extends CI_TestCase
{
- public function setUp()
+ public function set_up()
{
$this->my_array = array(
'foo' => 'bar',
@@ -18,7 +18,7 @@
// ------------------------------------------------------------------------
- public function testElementWithExistingItem()
+ public function test_element_with_existing_item()
{
$this->assertEquals(FALSE, element('testing', $this->my_array));
@@ -29,7 +29,7 @@
// ------------------------------------------------------------------------
- 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 @@
// ------------------------------------------------------------------------
- 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)));