public function testGetIterator() { $this->object->setKeyValue('k1'); $it = $this->object->getIterator(); $expectedRecord = array('A' => 'v,1,A', 'B' => 'v,1,B', 'C' => 'v,1,C'); foreach ($it as $key => $value) { $this->assertTrue(isset($expectedRecord[$key])); $this->assertEquals($expectedRecord[$key], $value); } }
public function set($value) { $this->recordAdapter->setKeyValue($value); }