remove regex in favor of strpos
diff --git a/tests/codeigniter/helpers/text_helper_test.php b/tests/codeigniter/helpers/text_helper_test.php
index 3c59053..73e2b94 100644
--- a/tests/codeigniter/helpers/text_helper_test.php
+++ b/tests/codeigniter/helpers/text_helper_test.php
@@ -169,8 +169,7 @@
{
$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