public function testLast() { $result = $this->getTestResult(); $doc = $result->last(); $testDoc = new Document(array('id' => 1, 'name' => 'Katie Smith', 'age' => 21)); $this->assertEquals($testDoc, $doc); }