A collection of Documents returned from a Query.
This class acts like an array but also has some helper methods for
manipulating the collection in useful ways.
public function testFirstNoResults() { $result = new Result(array(), 0); $doc = $result->first(); $this->assertFalse($doc); }