summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-05-25 01:24:17 +0200
committerAndrey Andreev <narf@bofh.bg>2012-05-25 01:24:17 +0200
commitf33e2ff30b0a9c54d6e8adbe88662838b9bd525e (patch)
tree4cae7e687b32ea49ee7d2307fb698dee6e4c23c0 /tests
parent0174d84401b5c5996115a4a6193161f1dab96de2 (diff)
Again ... escape_like_str() tests
Diffstat (limited to 'tests')
-rw-r--r--tests/codeigniter/database/query_builder/escape_test.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/codeigniter/database/query_builder/escape_test.php b/tests/codeigniter/database/query_builder/escape_test.php
index 9df82c2d0..50685922a 100644
--- a/tests/codeigniter/database/query_builder/escape_test.php
+++ b/tests/codeigniter/database/query_builder/escape_test.php
@@ -22,7 +22,8 @@ class Escape_test extends CI_TestCase {
*/
public function test_escape_like_percent_sign()
{
- $string = $this->db->escape_like_str('\%foo');
+ $string = '\%foo'
+;
$this->db->select('value');
$this->db->from('misc');
$this->db->like('key', $string, 'after');
@@ -39,8 +40,8 @@ class Escape_test extends CI_TestCase {
*/
public function test_escape_like_backslash_sign()
{
- $string = $this->db->escape_like_str('\\');
- $res = $this->db->select('value')->from('misc')->like('key', $string, 'after')->get();
+ $string = '\\';
+
$this->db->select('value');
$this->db->from('misc');
$this->db->like('key', $string, 'after');