Reverting change made in [7cde309]. Readding trim() to fix issues on windows. Updating tests so they continue to pass on macos. Fixes #769

This commit is contained in:
mark_story 2010-05-30 11:16:40 -04:00
parent 907af961c8
commit 07948a733d
2 changed files with 2 additions and 2 deletions

View file

@ -192,7 +192,7 @@ class File extends Object {
if ($bytes === false) {
$this->close();
}
return $data;
return trim($data);
}
/**

View file

@ -115,7 +115,7 @@ class FileTest extends CakeTestCase {
$this->File->lock = true;
$result = $this->File->read();
$expecting = file_get_contents(__FILE__);
$this->assertEqual($result, $expecting);
$this->assertEqual($result, trim($expecting));
$this->File->lock = null;
$data = $expecting;