summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/database
diff options
context:
space:
mode:
Diffstat (limited to 'tests/codeigniter/database')
-rw-r--r--tests/codeigniter/database/query_builder/escape_test.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/codeigniter/database/query_builder/escape_test.php b/tests/codeigniter/database/query_builder/escape_test.php
index 6d220d65d..f2d1b84ca 100644
--- a/tests/codeigniter/database/query_builder/escape_test.php
+++ b/tests/codeigniter/database/query_builder/escape_test.php
@@ -23,8 +23,8 @@ class Escape_test extends CI_TestCase {
public function test_escape_like_percent_sign()
{
$string = $this->db->escape_like_str('\%foo');
- $sql = "SELECT `value` FROM `misc` WHERE `key` LIKE '$string%';";
- $res = $this->db->query($sql)->result_array();
+ $sql = "SELECT `value` FROM `misc` WHERE `key` LIKE '$string%';";
+ $res = $this->db->query($sql)->result_array();
// Check the result
$this->assertEquals(1, count($res));
@@ -38,8 +38,8 @@ class Escape_test extends CI_TestCase {
public function test_escape_like_backslash_sign()
{
$string = $this->db->escape_like_str('\\');
- $sql = "SELECT `value` FROM `misc` WHERE `key` LIKE '$string%';";
- $res = $this->db->query($sql)->result_array();
+ $sql = "SELECT `value` FROM `misc` WHERE `key` LIKE '$string%';";
+ $res = $this->db->query($sql)->result_array();
// Check the result
$this->assertEquals(2, count($res));