Fix line breaks on CSV reader

This commit is contained in:
skeleton committed 2016-03-23 23:26:49 +01:00
1 parent e321f30c3b
commit d6e8fe4b54
5 files changed
+51 -50

No files matched your search

+9
View File
@@ -204,6 +204,15 @@ class ReaderTest extends \PHPUnit_Framework_TestCase
$this->assertEquals('This is, a comma', $allRows[0][0]);
}
/**
* @return void
*/
public function testReadShouldNotTruncateLineBreak()
{
$allRows = $this->getAllRowsForFile('csv_with_line_breaks.csv', ',');
$this->assertEquals("This is,\na comma", $allRows[0][0]);
}
/**
* @return array
*/