public function testGetRowsIterator()
{
$result = new LuceneResult(array("rows" => array(array("id" => "foo", "score" => 1234), array("id" => "foo", "score" => 1234))));
$i = 0;
foreach ($result as $row) {
$this->assertEquals("foo", $row['id']);
$this->assertEquals(1234, $row['score']);
$i++;
}
$this->assertEquals(2, $i);
}