diff options
author | Ignace Nyamagana Butera <nyamsprod@gmail.com> | 2015-04-23 14:58:46 +0200 |
---|---|---|
committer | Ignace Nyamagana Butera <nyamsprod@gmail.com> | 2015-04-23 15:06:33 +0200 |
commit | bbeecf312581303d67eaecde4d70e1a153991275 (patch) | |
tree | 6bc238b7a0056aa711cde9fb923f006d297fe5d5 /test | |
parent | dd1a8a2d7fdf021cb2cab5ee1081e48b30f39b6b (diff) | |
download | csv-bbeecf312581303d67eaecde4d70e1a153991275.zip csv-bbeecf312581303d67eaecde4d70e1a153991275.tar.gz csv-bbeecf312581303d67eaecde4d70e1a153991275.tar.bz2 |
improve internal Reader code
Diffstat (limited to 'test')
-rw-r--r-- | test/ReaderTest.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ReaderTest.php b/test/ReaderTest.php index 87c238d..33d3c41 100644 --- a/test/ReaderTest.php +++ b/test/ReaderTest.php @@ -278,6 +278,14 @@ class ReaderTest extends PHPUnit_Framework_TestCase } /** + * @expectedException \InvalidArgumentException + */ + public function testFetchAssocKeyFailureWithEmptyArray() + { + $this->csv->fetchAssoc([]); + } + + /** * @param $offset * @dataProvider invalidOffsetWithFetchAssoc * @expectedException \InvalidArgumentException |