Permalink
Browse files

correcting test

  • Loading branch information...
1 parent 7969062 commit 07d92ef678f3aad210ba31a8784f1e2050047808 @dereuromark dereuromark committed Aug 17, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/Cake/Test/Case/Utility/StringTest.php
@@ -468,15 +468,17 @@ public function testTruncateLegacy() {
Configure::write('App.encoding', 'ISO-8859-1');
$text = '<b>&copy; 2005-2007, Cake Software Foundation, Inc.</b><br />written by Alexander Wegener';
$result = $this->Text->truncate($text, 31, array(
+ 'html' => true,
'exact' => false,
));
- $expected = '<b>&copy; 2005-2007, Cake...';
+ $expected = '<b>&copy; 2005-2007, Cake Software...</b>';
$this->assertEquals($expected, $result);
$result = $this->Text->truncate($text, 31, array(
+ 'html' => true,
'exact' => true,
));
- $expected = '<b>&copy; 2005-2007, Cake So...';
+ $expected = '<b>&copy; 2005-2007, Cake Software F...</b>';
$this->assertEquals($expected, $result);
}

0 comments on commit 07d92ef

Please sign in to comment.