Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR Fixed broken CSVParserTest on Windows because of newline charac…

…ter differences
  • Loading branch information...
commit b559b9ba53c7efc2521a503c2a6312d5e0569cd7 1 parent 201506e
@halkyon halkyon authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/dev/CSVParserTest.php
View
6 tests/dev/CSVParserTest.php
@@ -19,7 +19,7 @@ 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",
+ sprintf("She is awesome.%sSo awesome that she gets multiple rows and \"escaped\" strings in her biography", PHP_EOL),
"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 @@ 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",
+ sprintf("She is awesome.%sSo awesome that she gets multiple rows and \"escaped\" strings in her biography", PHP_EOL),
"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 @@ 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",
+ sprintf("She is awesome.%sSo awesome that she gets multiple rows and \"escaped\" strings in her biography", PHP_EOL),
"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);
Please sign in to comment.
Something went wrong with that request. Please try again.