public function testCountable() { $result = new LuceneResult(array('limit' => 1, "rows" => array(0 => array("_id" => "foo", "score" => 1234)))); $this->assertEquals(1, count($result)); }