mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-12 20:49:50 +00:00
prevent rtrim to remove whitespace from test
This commit is contained in:
parent
1339a9dfe1
commit
e7e5f46916
1 changed files with 6 additions and 8 deletions
|
@ -330,14 +330,12 @@ TEXT;
|
|||
$this->assertTextEquals($expected, $result, 'Text not wrapped.');
|
||||
|
||||
$result = String::wrap($text, array('width' => 20, 'wordWrap' => false));
|
||||
$expected = <<<TEXT
|
||||
This is the song th
|
||||
at never ends. This
|
||||
is the song that n
|
||||
ever ends. This is
|
||||
the song that never
|
||||
ends.
|
||||
TEXT;
|
||||
$expected = 'This is the song th' . "\n" .
|
||||
'at never ends. This' . "\n" .
|
||||
' is the song that n' . "\n" .
|
||||
'ever ends. This is ' . "\n" .
|
||||
'the song that never' . "\n" .
|
||||
' ends.';
|
||||
$this->assertTextEquals($expected, $result, 'Text not wrapped.');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue