This commit is contained in:
madflow committed 2016-04-06 22:00:47 +02:00
1 parent b69e28050b
commit 6f0f7c9690
8 files changed
+100 -2

No files matched your search

+18
View File
@@ -461,6 +461,24 @@ class ReaderTest extends \PHPUnit_Framework_TestCase
}
/**
* https://github.com/box/spout/issues/195
* @return void
*/
public function testReaderShouldNotTrimCellValues()
{
$allRows = $this->getAllRowsForFile('sheet_with_untrimmed_strings.xlsx');
$expectedRows = [
['A'],
[' A '],
["\n\tA\n\t"],
];
$this->assertEquals($expectedRows, $allRows, 'Cell values should not be trimmed');
}
/**
* @param string $fileName
* @return array All the read rows the given file