always write rows even with no cells #492
This commit is contained in:
1 parent
8aec9ea992
commit
7367b89384
2 files changed
+10
-13
No files matched your search
@@ -133,7 +133,7 @@ class WriterTest extends \PHPUnit_Framework_TestCase
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function testWriteShouldSkipEmptyRows()
|
||||
public function testWriteShouldNotSkipEmptyRows()
|
||||
{
|
||||
$allRows = $this->createRowsFromValues([
|
||||
['csv--11', 'csv--12'],
|
||||
@@ -143,7 +143,7 @@ class WriterTest extends \PHPUnit_Framework_TestCase
|
||||
$writtenContent = $this->writeToCsvFileAndReturnWrittenContent($allRows, 'csv_with_empty_rows.csv');
|
||||
$writtenContent = $this->trimWrittenContent($writtenContent);
|
||||
|
||||
$this->assertEquals("csv--11,csv--12\ncsv--31,csv--32", $writtenContent, 'Empty rows should be skipped');
|
||||
$this->assertEquals("csv--11,csv--12\n\ncsv--31,csv--32", $writtenContent, 'Empty rows should be skipped');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user