From 029f2ab75ceb3a2f407333c662a51680deea9461 Mon Sep 17 00:00:00 2001 From: joelmoss Date: Tue, 15 Jul 2008 11:01:44 +0000 Subject: [PATCH] Created test to prove #4941. Refs #4941 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7339 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/tests/cases/libs/view/helpers/text.test.php | 2 ++ 1 file changed, 2 insertions(+) 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';