public function testLastOnEmptyCollection() { $this->setExpectedException('Pheasant\\NotFoundException'); Animal::find('name=?', 'Dodo')->last(); }