summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ReaderTest.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ReaderTest.php b/test/ReaderTest.php
index 36d4dc1..47e38fb 100644
--- a/test/ReaderTest.php
+++ b/test/ReaderTest.php
@@ -286,4 +286,13 @@ EOF;
$csv = Reader::createFromPath(__DIR__.'/foo.csv')->newWriter('a+');
$this->assertInstanceOf('\League\Csv\Writer', $csv);
}
+
+ public function testFetchAssocWithoutKeys()
+ {
+ $csv = Reader::createFromPath(__DIR__.'/data/prenoms.csv');
+ $csv->setDelimiter(';');
+ $csv->setEncodingFrom("iso-8859-15");
+ $data = $csv->fetchAssoc();
+ $this->assertTrue($data[0]['prenoms'] == 'Aaron');
+ }
}