diff --git a/cake/tests/cases/libs/view/helpers/text.test.php b/cake/tests/cases/libs/view/helpers/text.test.php index c497ce5d0..0679eacc6 100644 --- a/cake/tests/cases/libs/view/helpers/text.test.php +++ b/cake/tests/cases/libs/view/helpers/text.test.php @@ -68,6 +68,7 @@ class TextTest extends UnitTestCase { $text3 = '© 2005-2007, Cake Software Foundation, Inc.
written by Alexander Wegener'; $text4 = ' This image tag is not XHTML conform!

But the following image tag should be conform Me, myself and I
Great, or?'; $text5 = '01234567890'; + $text6 = "

Extra dates have been announced for this year's tour.

"; $this->assertIdentical($this->Text->{$m}($text1, 15), 'The quick br...'); $this->assertIdentical($this->Text->{$m}($text1, 15, '...', false), 'The quick...'); @@ -89,6 +90,7 @@ class TextTest extends UnitTestCase { $this->assertIdentical($this->Text->{$m}($text4, 90, '...', true, true), ' This image tag is not XHTML conform!

But the following image tag should be conform Me, myself and I
Grea...'); $this->assertIdentical($this->Text->{$m}($text5, 6, '', true, true), '012345'); $this->assertIdentical($this->Text->{$m}($text5, 20, '', true, true), $text5); + $this->assertIdentical($this->Text->{$m}($text6, 57, '...', false, true), "

Extra dates have been announced for this year's...

"); if ($this->method == 'truncate') { $this->method = 'trim';