/** * @expectedException InvalidArgumentException */ public function testResetIndexShouldThrowExceptionForInvalidIndex() { $resetter = new Resetter($this->indexConfigsByName); $resetter->resetIndex('baz'); }