Skip to content

Commit

Permalink
Fix issue with trim line ending and test content.
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Jan 7, 2015
1 parent b0fcaae commit 8b0567b
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions tests/TestCase/Utility/TextTest.php
Expand Up @@ -423,14 +423,12 @@ public function testWrap()
$this->assertTextEquals($expected, $result, 'Text not wrapped.');

$result = Text::wrap($text, ['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.');
}

Expand Down

0 comments on commit 8b0567b

Please sign in to comment.