public function testIteration()
{
$iterator = new MockResult(array('records' => array("one", "two", "three", "four")));
$result = array();
$expected = array(array(0, "one"), array(1, "two"), array(2, "three"), array(3, "four"));
foreach ($iterator as $key => $val) {
$result[] = array($key, $val);
}
$this->assertEqual($expected, $result);
}