diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-10-23 00:11:48 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-10-23 00:11:48 +0200 |
commit | 96a4ca6605d6a8a94eea96ed00ab1cf31a8cdd35 (patch) | |
tree | a408fb4795fb7bd349fef8649eab616a3a826238 /tests/codeigniter/database | |
parent | 9f6bdc0b1b9f56997527652a0e1d09a9b233d32e (diff) |
Add a test for issue #273
Diffstat (limited to 'tests/codeigniter/database')
-rw-r--r-- | tests/codeigniter/database/query_builder/like_test.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/codeigniter/database/query_builder/like_test.php b/tests/codeigniter/database/query_builder/like_test.php index 5f3e52228..20ce5d99c 100644 --- a/tests/codeigniter/database/query_builder/like_test.php +++ b/tests/codeigniter/database/query_builder/like_test.php @@ -87,4 +87,20 @@ class Like_test extends CI_TestCase { $this->assertEquals('Musician', $jobs[2]['name']); } + // ------------------------------------------------------------------------ + + /** + * GitHub issue #273 + * + * @see ./mocks/schema/skeleton.php + */ + public function test_like_spaces_and_tabs() + { + $spaces = $this->db->like('key', ' ')->get('misc')->result_array(); + $tabs = $this->db->like('key', "\t")->get('misc')->result_array(); + + $this->assertEquals(1, count($spaces)); + $this->assertEquals(1, count($tabs)); + } + }
\ No newline at end of file |