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 e16610c..d650c51 100644
--- a/test/ReaderTest.php
+++ b/test/ReaderTest.php
@@ -216,6 +216,15 @@ class ReaderTest extends AbstractTestCase
}
/**
+ * @expectedException \InvalidArgumentException
+ */
+ public function testFetchAssocThrowsExceptionWithNonUniqueAssocKeys()
+ {
+ $keys = ['firstname', 'lastname', 'firstname'];
+ $this->csv->fetchAssoc($keys);
+ }
+
+ /**
* @param $expected
* @dataProvider validBOMSequences
*/