summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorignace nyamagana butera <nyamsprod@gmail.com>2015-09-25 13:01:07 +0200
committerignace nyamagana butera <nyamsprod@gmail.com>2015-09-25 13:01:07 +0200
commitd7ecd98dea9abcae3c77153ed87f0e182c4d95af (patch)
treef5a978638ed6b26952aa52057cdbf8196703e777 /test
parent9e50df4fbed858b4b633f7d203c5be31b3f089fe (diff)
downloadcsv-d7ecd98dea9abcae3c77153ed87f0e182c4d95af.zip
csv-d7ecd98dea9abcae3c77153ed87f0e182c4d95af.tar.gz
csv-d7ecd98dea9abcae3c77153ed87f0e182c4d95af.tar.bz2
#55 bug fix detect delimiter
Diffstat (limited to 'test')
-rw-r--r--test/ControlsTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ControlsTest.php b/test/ControlsTest.php
index 3976499..f8b8d63 100644
--- a/test/ControlsTest.php
+++ b/test/ControlsTest.php
@@ -51,7 +51,7 @@ class ControlsTest extends PHPUnit_Framework_TestCase
public function testDetectDelimiterList()
{
- $this->assertSame([4 => ','], $this->csv->detectDelimiterList());
+ $this->assertSame([',' => 4], $this->csv->detectDelimiterList());
}
public function testBOMSettings()
@@ -125,7 +125,7 @@ class ControlsTest extends PHPUnit_Framework_TestCase
$data->fputcsv(['toto', 'tata', 'tutu']);
$csv = Writer::createFromFileObject($data);
- $this->assertSame([12 => '|', 4 => ';'], $csv->detectDelimiterList(5, ['|']));
+ $this->assertSame(['|' => 12, ';' => 4], $csv->detectDelimiterList(5, ['|']));
}
/**