/** * @expectedException NotFoundException */ public function testFindByIndexNotFound() { PostRepository::find(-1); }