Exemple #1
0
 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());
     }
 }