Switch to using str_getcsv rather than explode to handle test data strings containing commas

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85851 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
Mark Baker 2012-01-29 14:24:43 +00:00
parent b2624a2ad1
commit c92f4560e6
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ class testDataFileIterator implements Iterator
list($testData) = explode('//',$testDataRow); list($testData) = explode('//',$testDataRow);
// Split data into an array of individual values and a result // Split data into an array of individual values and a result
$dataSet = explode(',',$testData); $dataSet = str_getcsv($testData,',',"'");
foreach($dataSet as &$dataValue) { foreach($dataSet as &$dataValue) {
$dataValue = $this->_parseDataValue($dataValue); $dataValue = $this->_parseDataValue($dataValue);
} }