summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoffrey Jaffeux <j.jaffeux@gmail.com>2012-06-06 15:58:28 +0200
committerJoffrey Jaffeux <j.jaffeux@gmail.com>2012-06-06 15:58:28 +0200
commit4215ddccd369ae8894c1031b97a344ae76eef5f6 (patch)
tree13eef6e9618787808eff6a4bd91d059be0d2c361 /tests
parent385452c2ca1f9ce00668ca6d77c6fd0ad1ea4771 (diff)
remove regex in favor of strpos
Diffstat (limited to 'tests')
-rw-r--r--tests/codeigniter/helpers/text_helper_test.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/codeigniter/helpers/text_helper_test.php b/tests/codeigniter/helpers/text_helper_test.php
index 3c590538a..73e2b9429 100644
--- a/tests/codeigniter/helpers/text_helper_test.php
+++ b/tests/codeigniter/helpers/text_helper_test.php
@@ -169,8 +169,7 @@ class Text_helper_test extends CI_TestCase {
{
$string = "Here is a longer string of text that will help us demonstrate the default charlim of this function.";
$word_wrapped = word_wrap($string);
- $matches = preg_split("/\n/", $word_wrapped, 0);
- $this->assertEquals(strlen($matches[0]), 73);
+ $this->assertEquals(strpos($word_wrapped, "\n"), 73);
}
} \ No newline at end of file