summaryrefslogtreecommitdiffstats
path: root/test/ReaderTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'test/ReaderTest.php')
-rw-r--r--test/ReaderTest.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/ReaderTest.php b/test/ReaderTest.php
index b2ecb6a..893df93 100644
--- a/test/ReaderTest.php
+++ b/test/ReaderTest.php
@@ -606,12 +606,18 @@ class ReaderTest extends AbstractTestCase
$this->csv->setReturnType(Reader::TYPE_ITERATOR);
$this->assertInstanceof('\Iterator', $this->csv->fetchAssoc());
$this->assertInternalType('array', $this->csv->fetchAssoc());
+ $this->csv->setReturnType(Reader::TYPE_ITERATOR);
+ $this->csv->toXML();
+ $this->assertInternalType('array', $this->csv->fetchAssoc());
}
public function testReturnTypeResetBetweenCallToArrayWithFetchPairs()
{
$this->csv->setReturnType(Reader::TYPE_ITERATOR);
- $this->assertInstanceof('\Iterator', $this->csv->fetchAssoc());
- $this->assertInternalType('array', $this->csv->fetchAssoc());
+ $this->assertInstanceof('\Iterator', $this->csv->fetchPairs());
+ $this->assertInternalType('array', $this->csv->fetchPairs());
+ $this->csv->setReturnType(Reader::TYPE_ITERATOR);
+ $this->csv->toXML();
+ $this->assertInternalType('array', $this->csv->fetchPairs());
}
}