public function testThrowsExceptionWhenNoIndexAndNoCreate() { try { Zym_Search_Lucene_Index::factory('test', true, false); } catch (Exception $e) { $this->assertType('Zym_Search_Lucene_Exception', $e); $this->assertContains('does not exists', $e->getMessage()); } }
/** * Set the result cache * * @param Zend_Cache_Core $cache */ public static function setResultCache(Zend_Cache_Core $cache) { self::$_resultCache = $cache; }
/** * Set the default resultset limit * * @param int $limit */ public static function setDefaultResultSetLimit($limit) { self::$_defaultResultSetLimit = (int) $limit; }