summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoffrey Jaffeux <j.jaffeux@gmail.com>2012-06-06 15:43:18 +0200
committerJoffrey Jaffeux <j.jaffeux@gmail.com>2012-06-06 15:43:18 +0200
commit385452c2ca1f9ce00668ca6d77c6fd0ad1ea4771 (patch)
tree28b4157c8ba9407a76b1a8851980db5e886aa389
parentbfaf50258b6f33961210ecc3df4ade2e0a4512b4 (diff)
correction of the test and longer test string
-rw-r--r--tests/codeigniter/helpers/text_helper_test.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/codeigniter/helpers/text_helper_test.php b/tests/codeigniter/helpers/text_helper_test.php
index 3bc83f050..3c590538a 100644
--- a/tests/codeigniter/helpers/text_helper_test.php
+++ b/tests/codeigniter/helpers/text_helper_test.php
@@ -167,10 +167,10 @@ class Text_helper_test extends CI_TestCase {
public function test_default_word_wrap_charlim()
{
- $string = "Here is a simple string of text that will help us demonstrate this function.";
+ $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, 1);
- $this->assertEquals(strlen($matches[0]) - 1, 76);
+ $matches = preg_split("/\n/", $word_wrapped, 0);
+ $this->assertEquals(strlen($matches[0]), 73);
}
} \ No newline at end of file