/** * @expectedException NotFoundException */ public function testIndexNotFound() { PostRepository::index('xxx'); }