Browse Source

Fix ZF-12180: allow Zend_Search_Lucene tests to run more than once

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@24811 44c647ce-9c0f-0410-b52a-842ac1e357ba
rob 13 years ago
parent
commit
657fe348d5
1 changed files with 5 additions and 0 deletions
  1. 5 0
      tests/Zend/Search/Lucene/LuceneTest.php

+ 5 - 0
tests/Zend/Search/Lucene/LuceneTest.php

@@ -61,6 +61,11 @@ class Zend_Search_Lucene_LuceneTest extends PHPUnit_Framework_TestCase
         closedir($dir);
     }
 
+    public function setUp()
+    {
+        $this->_clearDirectory(dirname(__FILE__) . '/_index/_files');
+    }
+
     public function testCreate()
     {
         $index = Zend_Search_Lucene::create(dirname(__FILE__) . '/_index/_files');