Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

prevent rtrim to remove whitespace from test

  • Loading branch information...
commit e7e5f46916a151b317d591466cac540e698ec57d 1 parent 1339a9d
Mark S. dereuromark authored
Showing with 6 additions and 8 deletions.
  1. +6 −8 lib/Cake/Test/Case/Utility/StringTest.php
14 lib/Cake/Test/Case/Utility/StringTest.php
View
@@ -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.');
}
Please sign in to comment.
Something went wrong with that request. Please try again.