Przeglądaj źródła

[TESTS]
- Fixing tests/Zend/Db/Table/Select/TestCommon.php to restore include path if mangled


git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@17183 44c647ce-9c0f-0410-b52a-842ac1e357ba

ralph 16 lat temu
rodzic
commit
80cc922ebe
1 zmienionych plików z 9 dodań i 0 usunięć
  1. 9 0
      tests/Zend/Db/Table/Select/TestCommon.php

+ 9 - 0
tests/Zend/Db/Table/Select/TestCommon.php

@@ -41,6 +41,8 @@ PHPUnit_Util_Filter::addFileToFilter(__FILE__);
 abstract class Zend_Db_Table_Select_TestCommon extends Zend_Db_Select_TestCommon
 {
 
+    protected $_runtimeIncludePath = null;
+    
     /**
      * @var array of Zend_Db_Table_Abstract
      */
@@ -55,6 +57,13 @@ abstract class Zend_Db_Table_Select_TestCommon extends Zend_Db_Select_TestCommon
         $this->_table['bugs_products'] = $this->_getTable('My_ZendDbTable_TableBugsProducts');
         $this->_table['products']      = $this->_getTable('My_ZendDbTable_TableProducts');
     }
+    
+    public function tearDown()
+    {
+        if ($this->_runtimeIncludePath) {
+            $this->_restoreIncludePath();
+        }
+    }
 
     protected function _getTable($tableClass, $options = array())
     {