/** * @expectedException \RuntimeException */ public function testIndexByThrowingExceptionOnMissingValue() { ArrayUtils::indexBy($this->_getArrayPreset('2D_collection_5_named'), 'title'); }