mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +00:00
correcting test
This commit is contained in:
parent
7969062614
commit
07d92ef678
1 changed files with 4 additions and 2 deletions
|
@ -468,15 +468,17 @@ podeís adquirirla.</span></p>
|
||||||
Configure::write('App.encoding', 'ISO-8859-1');
|
Configure::write('App.encoding', 'ISO-8859-1');
|
||||||
$text = '<b>© 2005-2007, Cake Software Foundation, Inc.</b><br />written by Alexander Wegener';
|
$text = '<b>© 2005-2007, Cake Software Foundation, Inc.</b><br />written by Alexander Wegener';
|
||||||
$result = $this->Text->truncate($text, 31, array(
|
$result = $this->Text->truncate($text, 31, array(
|
||||||
|
'html' => true,
|
||||||
'exact' => false,
|
'exact' => false,
|
||||||
));
|
));
|
||||||
$expected = '<b>© 2005-2007, Cake...';
|
$expected = '<b>© 2005-2007, Cake Software...</b>';
|
||||||
$this->assertEquals($expected, $result);
|
$this->assertEquals($expected, $result);
|
||||||
|
|
||||||
$result = $this->Text->truncate($text, 31, array(
|
$result = $this->Text->truncate($text, 31, array(
|
||||||
|
'html' => true,
|
||||||
'exact' => true,
|
'exact' => true,
|
||||||
));
|
));
|
||||||
$expected = '<b>© 2005-2007, Cake So...';
|
$expected = '<b>© 2005-2007, Cake Software F...</b>';
|
||||||
$this->assertEquals($expected, $result);
|
$this->assertEquals($expected, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue