summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/helpers/array_helper_test.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2017-12-20 18:57:39 +0100
committerAndrey Andreev <narf@devilix.net>2017-12-20 19:02:17 +0100
commit20d9b0a9c03955da0010a3df91adcd9b8e6e7d58 (patch)
tree40a405d18778612b0c124a26036af77ec558e4c9 /tests/codeigniter/helpers/array_helper_test.php
parent9e2dcd4a6a70a997d8d741e8f113660f16b9a609 (diff)
Merge pull request #5354 from carusogabriel/refactoring-tests
Refactoring tests Conflicts resolved: tests/codeigniter/core/Utf8_test.php tests/codeigniter/database/query_builder/group_test.php tests/codeigniter/libraries/Form_validation_test.php
Diffstat (limited to 'tests/codeigniter/helpers/array_helper_test.php')
-rw-r--r--tests/codeigniter/helpers/array_helper_test.php8
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
+}