Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

correcting test

  • Loading branch information...
commit 07d92ef678f3aad210ba31a8784f1e2050047808 1 parent 7969062
@dereuromark dereuromark authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/Cake/Test/Case/Utility/StringTest.php
View
6 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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.