Skip to content
This repository
Browse code

correcting test

  • Loading branch information...
commit 07d92ef678f3aad210ba31a8784f1e2050047808 1 parent 7969062
Mark authored August 17, 2012

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. 6  lib/Cake/Test/Case/Utility/StringTest.php
6  lib/Cake/Test/Case/Utility/StringTest.php
@@ -468,15 +468,17 @@ public function testTruncateLegacy() {
468 468
 		Configure::write('App.encoding', 'ISO-8859-1');
469 469
 		$text = '<b>&copy; 2005-2007, Cake Software Foundation, Inc.</b><br />written by Alexander Wegener';
470 470
 		$result = $this->Text->truncate($text, 31, array(
  471
+			'html' => true,
471 472
 			'exact' => false,
472 473
 		));
473  
-		$expected = '<b>&copy; 2005-2007, Cake...';
  474
+		$expected = '<b>&copy; 2005-2007, Cake Software...</b>';
474 475
 		$this->assertEquals($expected, $result);
475 476
 		
476 477
 		$result = $this->Text->truncate($text, 31, array(
  478
+			'html' => true,
477 479
 			'exact' => true,
478 480
 		));
479  
-		$expected = '<b>&copy; 2005-2007, Cake So...';
  481
+		$expected = '<b>&copy; 2005-2007, Cake Software F...</b>';
480 482
 		$this->assertEquals($expected, $result);
481 483
 	}
482 484
 

0 notes on commit 07d92ef

Please sign in to comment.
Something went wrong with that request. Please try again.