Permalink
Browse files

prevent rtrim to remove whitespace from test

  • Loading branch information...
1 parent 1339a9d commit e7e5f46916a151b317d591466cac540e698ec57d @dereuromark dereuromark committed Aug 7, 2013
Showing with 6 additions and 8 deletions.
  1. +6 −8 lib/Cake/Test/Case/Utility/StringTest.php
View
14 lib/Cake/Test/Case/Utility/StringTest.php
@@ -330,14 +330,12 @@ public function testWrap() {
$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.');
}

0 comments on commit e7e5f46

Please sign in to comment.