From c92f4560e65de9c59767ca34bf268f42fd258071 Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Sun, 29 Jan 2012 14:24:43 +0000 Subject: [PATCH] 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 --- unitTests/testDataFileIterator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unitTests/testDataFileIterator.php b/unitTests/testDataFileIterator.php index 38f85005..0e6aad8c 100644 --- a/unitTests/testDataFileIterator.php +++ b/unitTests/testDataFileIterator.php @@ -57,7 +57,7 @@ class testDataFileIterator implements Iterator list($testData) = explode('//',$testDataRow); // Split data into an array of individual values and a result - $dataSet = explode(',',$testData); + $dataSet = str_getcsv($testData,',',"'"); foreach($dataSet as &$dataValue) { $dataValue = $this->_parseDataValue($dataValue); }