From 07d92ef678f3aad210ba31a8784f1e2050047808 Mon Sep 17 00:00:00 2001
From: euromark
Date: Fri, 17 Aug 2012 14:02:20 +0200
Subject: [PATCH] correcting test
---
lib/Cake/Test/Case/Utility/StringTest.php | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/Cake/Test/Case/Utility/StringTest.php b/lib/Cake/Test/Case/Utility/StringTest.php
index f13fe25eb..062005ec1 100644
--- a/lib/Cake/Test/Case/Utility/StringTest.php
+++ b/lib/Cake/Test/Case/Utility/StringTest.php
@@ -468,15 +468,17 @@ podeĆs adquirirla.
Configure::write('App.encoding', 'ISO-8859-1');
$text = '© 2005-2007, Cake Software Foundation, Inc.
written by Alexander Wegener';
$result = $this->Text->truncate($text, 31, array(
+ 'html' => true,
'exact' => false,
));
- $expected = '© 2005-2007, Cake...';
+ $expected = '© 2005-2007, Cake Software...';
$this->assertEquals($expected, $result);
$result = $this->Text->truncate($text, 31, array(
+ 'html' => true,
'exact' => true,
));
- $expected = '© 2005-2007, Cake So...';
+ $expected = '© 2005-2007, Cake Software F...';
$this->assertEquals($expected, $result);
}