Permalink
Browse files

FIXED: CSV Test cases now use platform-correct linebreak characters

  • Loading branch information...
1 parent 5ea2c3d commit d54ef36b4743e49b4805a33fcae8f176ef28f1f3 @tractorcow tractorcow committed Sep 27, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/dev/CSVParserTest.php
@@ -19,7 +19,7 @@ public function testParsingWithHeaders() {
$this->assertEquals(array(
"He's a good guy",
- "She is awesome.\nSo awesome that she gets multiple rows and \"escaped\" strings in her biography",
+ "She is awesome." . PHP_EOL . "So awesome that she gets multiple rows and \"escaped\" strings in her biography",
"Pretty old, with an escaped comma",
"Unicode FTW"), $biographies);
$this->assertEquals(array("31/01/1988","31/01/1982","31/01/1882","31/06/1982"), $birthdays);
@@ -49,7 +49,7 @@ public function testParsingWithHeadersAndColumnMap() {
$this->assertEquals(array('John','Jane','Jamie','Järg'), $firstNames);
$this->assertEquals(array(
"He's a good guy",
- "She is awesome.\nSo awesome that she gets multiple rows and \"escaped\" strings in her biography",
+ "She is awesome." . PHP_EOL . "So awesome that she gets multiple rows and \"escaped\" strings in her biography",
"Pretty old, with an escaped comma",
"Unicode FTW"), $biographies);
$this->assertEquals(array("31/01/1988","31/01/1982","31/01/1882","31/06/1982"), $birthdays);
@@ -77,7 +77,7 @@ public function testParsingWithExplicitHeaderRow() {
$this->assertEquals(array(
'Biography',
"He's a good guy",
- "She is awesome.\nSo awesome that she gets multiple rows and \"escaped\" strings in her biography",
+ "She is awesome." . PHP_EOL . "So awesome that she gets multiple rows and \"escaped\" strings in her biography",
"Pretty old, with an escaped comma",
"Unicode FTW"), $biographies);
$this->assertEquals(array("Birthday","31/01/1988","31/01/1982","31/01/1882","31/06/1982"), $birthdays);

0 comments on commit d54ef36

Please sign in to comment.