summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/database/query_builder
diff options
context:
space:
mode:
authorTaufan Aditya <toopay@taufanaditya.com>2012-05-25 02:03:04 +0200
committerTaufan Aditya <toopay@taufanaditya.com>2012-05-25 02:03:04 +0200
commit64ccbd75b6725abc4770e0911a2af0f8d5bf7e6d (patch)
treeaab3d8c90b9d8ec858ad457d54c96e3b59e3a69b /tests/codeigniter/database/query_builder
parent502942bd94fef292970df331b15652ef6e1385e7 (diff)
parentf33e2ff30b0a9c54d6e8adbe88662838b9bd525e (diff)
Explicitely testing escape_like_str API
Diffstat (limited to 'tests/codeigniter/database/query_builder')
-rw-r--r--tests/codeigniter/database/query_builder/escape_test.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/codeigniter/database/query_builder/escape_test.php b/tests/codeigniter/database/query_builder/escape_test.php
index ac1c8f659..fe225436a 100644
--- a/tests/codeigniter/database/query_builder/escape_test.php
+++ b/tests/codeigniter/database/query_builder/escape_test.php
@@ -32,7 +32,7 @@ class Escape_test extends CI_TestCase {
$res = $this->db->query($sql)->result_array();
// Check the result
- $this->assertEquals(1, count($res));
+ $this->assertEquals(1, count($res->result_array()));
}
// ------------------------------------------------------------------------
@@ -49,6 +49,7 @@ class Escape_test extends CI_TestCase {
$res = $this->db->query($sql)->result_array();
// Check the result
- $this->assertEquals(2, count($res));
+ $this->assertEquals(2, count($res->result_array()));
}
+
} \ No newline at end of file