diff options
author | Gabriel Caruso <carusogabriel34@gmail.com> | 2017-12-08 20:25:02 +0100 |
---|---|---|
committer | Gabriel Caruso <carusogabriel34@gmail.com> | 2017-12-20 17:43:45 +0100 |
commit | dfa52f3ed31696c58fdc85273f4408559233b19e (patch) | |
tree | 63ca4ac93f9fd6f3afe5a91ef25701391ec9e593 /tests/codeigniter/helpers | |
parent | 3ecfcaa94bbae55fec8c2c9bbf8524c49816342f (diff) |
Refactoring tests
Diffstat (limited to 'tests/codeigniter/helpers')
-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 5a9958971..b2409c330 100644 --- a/tests/codeigniter/helpers/array_helper_test.php +++ b/tests/codeigniter/helpers/array_helper_test.php @@ -31,15 +31,15 @@ class Array_helper_test extends CI_TestCase { $this->assertEquals('my string', random_element('my string')); // Test sending an array - $this->assertEquals(TRUE, in_array(random_element($this->my_array), $this->my_array)); + $this->assertContains(random_element($this->my_array), $this->my_array); } // ------------------------------------------------------------------------ public function test_elements() { - $this->assertEquals(TRUE, is_array(elements('test', $this->my_array))); - $this->assertEquals(TRUE, is_array(elements('foo', $this->my_array))); + $this->assertInternalType('array', elements('test', $this->my_array)); + $this->assertInternalType('array', elements('foo', $this->my_array)); } -}
\ No newline at end of file +} |