Skip to content

Commit e7e5f46

Browse files
author
euromark
committed
prevent rtrim to remove whitespace from test
1 parent 1339a9d commit e7e5f46

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

lib/Cake/Test/Case/Utility/StringTest.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -330,14 +330,12 @@ public function testWrap() {
330330
$this->assertTextEquals($expected, $result, 'Text not wrapped.');
331331

332332
$result = String::wrap($text, array('width' => 20, 'wordWrap' => false));
333-
$expected = <<<TEXT
334-
This is the song th
335-
at never ends. This
336-
is the song that n
337-
ever ends. This is
338-
the song that never
339-
ends.
340-
TEXT;
333+
$expected = 'This is the song th' . "\n" .
334+
'at never ends. This' . "\n" .
335+
' is the song that n' . "\n" .
336+
'ever ends. This is ' . "\n" .
337+
'the song that never' . "\n" .
338+
' ends.';
341339
$this->assertTextEquals($expected, $result, 'Text not wrapped.');
342340
}
343341

0 commit comments

Comments
 (0)