diff options
author | ignace nyamagana butera <nyamsprod@gmail.com> | 2015-10-30 10:23:57 +0100 |
---|---|---|
committer | ignace nyamagana butera <nyamsprod@gmail.com> | 2015-10-30 10:23:57 +0100 |
commit | 70d905d19f595f51cba352aa568af47e2b7ef8dd (patch) | |
tree | f61566de2890e7ad56b74b207d506fd5af10c03d /test | |
parent | 8516512438d2a9b336a8e7acad0e8724f4069b20 (diff) | |
download | csv-70d905d19f595f51cba352aa568af47e2b7ef8dd.zip csv-70d905d19f595f51cba352aa568af47e2b7ef8dd.tar.gz csv-70d905d19f595f51cba352aa568af47e2b7ef8dd.tar.bz2 |
Improve Internal Code
Diffstat (limited to 'test')
-rw-r--r-- | test/ReaderTest.php | 9 |
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 */ |